Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Admin session timeout???


Guest

Recommended Posts

Posted

I am looking to increase the amount of time of inactivity the admin can have before it loses the logged in session. Where can I set/change this value. Currently, it is too short. I tried searching the forums and couldnt find anything. Thanks.

Posted

This is controlled by your browser. Your browser keeps your username and password cached so that when you view the admin section, you do not need to re-enter your login and password everytime you go to a new page.

Contributions

 

Discount Coupon Codes

Donations

Posted

you can control timeouts on the server side for sure. You can use the session_set_cookie_params, the first argument is when the session expires.

 

session_set_cookie_params(60*60*24); // 1 day

 

Maybe there is already something in admin\includes\application_top.php you can modify

Posted

admin/includes/functions/sessions.php

 

  if (STORE_SESSIONS == 'mysql') {
   if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {
     $SESS_LIFE = 1440;
   }

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...