Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin panel Timeout


shahed

Recommended Posts

Posted

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

Posted
I don't think there is supposed to be a time limit...

 

Maybe it's your webhost?

 

 

you can increase the session timeout in php.ini

 

sessions are deactivated after a certain time if no activity is recorded

Treasurer MFC

  • 1 month later...
Posted
you can increase the session timeout in php.ini

 

sessions are deactivated after a certain time if no activity is recorded

 

 

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!!

  • 2 months later...
Posted
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!!

 

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.

  • 6 months later...
Posted

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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...