Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin session lifetime extender


Schizolocal

Recommended Posts

In v2.3.1, I extended the lifetime of the admin session (before auto-expiry) by modifying a variable set in admin/sessions.php.

In v2.3.4, the code has been rewritten and now seems to use the php function session_set_save_handler with callback functions as parameters. But I can't seem to fathom how to make the equivalent modification. Any ideas?

 

Stuart

 

Link to comment
Share on other sites

I had to look up your island.  Must be very expensive to ship from.  Can I ask what you sell?

You might want to be careful modifying this, but below might work.  I haven't tested it.  7200 is 2 hours.  86400 would be one day.

    function _sess_gc($maxlifetime) {
      return tep_db_query("delete from " . TABLE_SESSIONS . " where expiry < '" . (time() - 7200) . "'");
    }

 

I'm not really a dog.

Link to comment
Share on other sites

The site isn't set up yet, but when it opens, i'll be selling (and dispatching, expensively :-) local arts and crafts

Thanks for the tip - I'll let you know how it goes.

Link to comment
Share on other sites

Good luck in your business and I hope you do well.

I don't think my change is going to work, but I'm playing wiht the same idea, so I'll let you know if I come up with it. 

I'm not really a dog.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...