Lynne in NY Posted February 8, 2020 Share Posted February 8, 2020 Where can I change the login timeout to be longer? Link to comment Share on other sites More sharing options...
bsmither Posted February 8, 2020 Share Posted February 8, 2020 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. Link to comment Share on other sites More sharing options...
Lynne in NY Posted February 8, 2020 Author Share Posted February 8, 2020 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? Link to comment Share on other sites More sharing options...
bsmither Posted February 8, 2020 Share Posted February 8, 2020 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. Link to comment Share on other sites More sharing options...
Lynne in NY Posted February 8, 2020 Author Share Posted February 8, 2020 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.... Link to comment Share on other sites More sharing options...
bsmither Posted February 8, 2020 Share Posted February 8, 2020 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? Link to comment Share on other sites More sharing options...
Lynne in NY Posted February 8, 2020 Author Share Posted February 8, 2020 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. Link to comment Share on other sites More sharing options...
bsmither Posted February 8, 2020 Share Posted February 8, 2020 Ok. I'll add this to the theory matrix. Link to comment Share on other sites More sharing options...
Lynne in NY Posted February 9, 2020 Author Share Posted February 9, 2020 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! Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 12, 2020 Share Posted March 12, 2020 So long as you use the latest version with Memcached this issue should be resolved. Link to comment Share on other sites More sharing options...
bsmither Posted March 12, 2020 Share Posted March 12, 2020 I have installed CC629 on a Linux Mint system with PHP7.4.3. One of the very first things I noticed was that I had anywhere from 1 minute to 30 minutes of session time. Some, maybe many, many versions (called distributions), of Linux takes it upon itself to clean out PHP sessions at 9 minutes and 39 minutes after every hour. After stopping that activity, PHP itself now manages sessions with parameters having been supplied by CubeCart. See: https://unix.stackexchange.com/questions/571581/how-to-remove-cron-task-that-deletes-php-sessions/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.