lisigef Posted May 9, 2008 Share Posted May 9, 2008 I searched the forum and Google and didn't find anything on this so I'm hoping someone can help me - a client is using oscommerce and when they are in the admin section adding and updating products they are always being asked to re-log in. They are actively working in the admin so I don't think it's timeout issue. Any ideas what I should be looking into? Thanks! Link to comment Share on other sites More sharing options...
arietis Posted May 9, 2008 Share Posted May 9, 2008 I searched the forum and Google and didn't find anything on this so I'm hoping someone can help me - a client is using oscommerce and when they are in the admin section adding and updating products they are always being asked to re-log in. They are actively working in the admin so I don't think it's timeout issue. Any ideas what I should be looking into? once logged in to the admin, is your user able to do anything? or are they immediately asked for a login no matter what they're doing? assuming you're using mysql to store your sessions, the default value for this is 1440 seconds (24 minutes) and is set in your php.ini file under the name session.gc_maxlifetime. if this has been set to a lower value it might explain things...but it would also be affecting non-admin users. if you want to change this to be just a hard-coded value and ignore the ini file, you can look for this code in admin/includes/functions/sessions.php: if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) { $SESS_LIFE = 1440; } to this: /*if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) { $SESS_LIFE = 1440; } */ $SESS_LIFE = 1800; // 30 * 60 == 1/2 hour session life use whatever time period you feel comfortable with. note that his would only change the session timeout for admins. if you want similar behavior for non-admins, you'd also need to change includes/functions/session.php in the same way. the other possibility is that your sessions table is corrupt. use phpmyadmin to check it out. you might need to do a repair or an optimize on it. since this table see lots of activity, its one of the most likely tables to get whacked when something goes wrong on your server. :( Link to comment Share on other sites More sharing options...
spooks Posted May 10, 2008 Share Posted May 10, 2008 This should sort you out http://addons.oscommerce.com/info/5899 ;) Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
lisigef Posted May 11, 2008 Author Share Posted May 11, 2008 Thanks...I will look into this Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.