shahed Posted December 16, 2004 Posted December 16, 2004 How can I increase the time on admin panel. its kicking me out of admin panel after 10 min. I want to increase it. I cant find anything by searching forum
cmbyrne Posted December 16, 2004 Posted December 16, 2004 I don't think there is supposed to be a time limit... Maybe it's your webhost?
boxtel Posted December 16, 2004 Posted December 16, 2004 I don't think there is supposed to be a time limit... Maybe it's your webhost? <{POST_SNAPBACK}> you can increase the session timeout in php.ini sessions are deactivated after a certain time if no activity is recorded Treasurer MFC
CJ122 Posted February 6, 2005 Posted February 6, 2005 you can increase the session timeout in php.ini sessions are deactivated after a certain time if no activity is recorded <{POST_SNAPBACK}> Hmmmn... <_<...Doesn't seem to be quite that simple. My question is, is there a way to have different session lenghths for the Admin side of things versus the Customer shopping cart? I would think most users couldn't care less about sessions in the Admin panel since they are propably the only one using it. In my effort to extend the Admin session (which is horribly short!) I've narrowed things down to two files: "admin/includes/classes/sessions.php" and "admin/includes/functions/sessions.php." I figure modifying either of these files would only affect the Admin panel. So...Does anyone know how to change these files to lenghth or disable the Admin session? If I figure it out, I'll post it here. Thanks in advance!!
Dhananjaya Posted April 30, 2005 Posted April 30, 2005 Hmmmn... <_<...Doesn't seem to be quite that simple. My question is, is there a way to have different session lenghths for the Admin side of things versus the Customer shopping cart? I would think most users couldn't care less about sessions in the Admin panel since they are propably the only one using it. In my effort to extend the Admin session (which is horribly short!) I've narrowed things down to two files: "admin/includes/classes/sessions.php" and "admin/includes/functions/sessions.php." I figure modifying either of these files would only affect the Admin panel. So...Does anyone know how to change these files to lenghth or disable the Admin session? If I figure it out, I'll post it here. Thanks in advance!! <{POST_SNAPBACK}> In admin/functions/sessions.php up at the top: if (STORE_SESSIONS == 'mysql') { if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) { $SESS_LIFE = 86400; // was 1440 (24 minutes) } Note that I've got 86400 where the default was 1440. These are seconds. How many seconds do you want. Also note that this oddly works on one of my shops and not another. And both are on the same server. Of course you could increase all your php sessions in php.ini as well if you know how to do that and if you have the right to do that but then you have to be more careful as that effects the whole server performance. I have moved on from oscommerce to magento and no longer monitoring this site.
Imago Posted November 24, 2005 Posted November 24, 2005 I've increased everything everywhere - from .htaccess via sessions.php to php.ini, and still admin session expiring after 24 minutes, which is 1440 seconds.
Imago Posted November 25, 2005 Posted November 25, 2005 And forgot to restart the Apache server. Now, after restarting the server, the sessions are no more 1440 seconds. So the first step is php.ini, then the sessions.php - but not more than the value set in php.ini.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.