Jump to content
Lynne in NY

Admin Login Time Out

Recommended Posts

The past several versions of CubeCart has set an 'idle timeout' of seven days. This is set near line 34 of /classes/session.class.php (604800 seconds).

I say 'idle timeout' because CubeCart resets the expire time/date of the cookie for every page delivered to the user.

(Much earlier versions of CC5/6 had three days for storefront visitors and one or two hours for admins of actual time - not idle time - before the session expired.)

Then there is also your hosting provider's ability to "clean out" sessions that follow different rules. Usually however, that's not an issue.

Edited by bsmither

Share this post


Link to post
Share on other sites

Thanks for that info! But... if the default is 604800 seconds, and there are 3600 seconds in an hour, that's 168 hours. We're timing out on the Administrators pages at around 10-15 minutes of idle time?

Share this post


Link to post
Share on other sites

Has this been an on-going problem? Like, since you started being hosted by your current provider?

There have been some issues (with cut-rate hosting) regarding having thousands and thousands of files in PHP's folder designated to hold such session data. When that folder gets full, sessions will not hold for any length of time. Please consult with your hosting provider to see if that may be an issue for you.

Would you, by chance, have a browser or other program on your workstation that is designed to thwart "browser fingerprinting"? This interferes with the browser's "user-agent string". When CubeCart sees a different UA string, that session will be killed.

Share this post


Link to post
Share on other sites

Yes, this problem has been since installation. I am the provider (reseller on HostGator). I have quite a few customers with similar php scripts running, the problem doesn't exist elsewhere. I could expand the space allocation, we're at 73% max... but that makes no sense as the problem was before any content ever got added.

Also, this happens on all browsers (Chrome, Firefox, IE, Puffin, Seaamonkey, Safari), and all devices.

Puzzling....

Share this post


Link to post
Share on other sites

I will try to come up with some diagnostic code to show when and why any particular session got killed.

Any clues in the admin, Error Log, System Error Log tab?

Share this post


Link to post
Share on other sites

Error log is empty. The System Error log has some errors from November, but nothing that seems related to this problem.

...this might have some odd connection to another problem we've had since a few days after installation where when closing the store from Admin doesn't work, and going to the store from Admin in some browsers, the pictures that "live" in the images directory don't display. We never figured that one out, either... but since it only affected us and not our customers we didn't burn a whole lot oil on it. But it seems like whatever controller is suppose to recognize Admins kind of doesn't.

Also, don't know if this helps or not, it happens (still) on a brand new W10 box that just got set up about 3 weeks ago.
 

Share this post


Link to post
Share on other sites

Thank you so much! A "theory matrix"... that sounds like something I'd be really intrested in, looking forward... but no rush on this especially if others have more urgent problems!

Share this post


Link to post
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...