Jump to content

Flushing Admin sessions


Guest LNT

Recommended Posts

Hi,

I am not sure if this one has been covered yet or not.

But how would you go about flushing the admin sessions out of the db and files, as (I think it was Estelle) said one time, it will do nothing more than create a massive log.

If anyone can assist, I would very much appreciate it.

Regards,

Link to comment
Share on other sites

Guest estelle

I was talking about customer sessions rather than admin sessions.

But if you want to delete everything from the admin sessions table, you just run:

TRUNCATE CubeCart_admin_sessions


Of course if you want to clear out the junk entries from your customer sessions table, you wouldn't want to run TRUNCATE, because then customers would lose their basket in the middle of shopping (or when they return to your site). I'm not 100% sure, but I think this is what I ran to delete all the junk entries from my (customer) sessions table:


DELETE FROM CubeCart_sessions WHERE basket IS NULL

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...