Increase logged in cookie time.

top50servers

Active Member
Alot of my users are complaining that they have to login everyday when using my site. I was wondering if there is a value I can change that will on increase the login time for a user (won't effect voting cookies/other cookies on the site).

Any help with this one?
 
well first, congrats on having an engaging enough list where you have users logging in every day :) that is an extreme rarity.

We have no hooks in this file, so you will need to modify the file directly.

sources/misc/session.php

find:
PHP:
  // Delete sessions that are over an hour old
  $check_time = time() - 3600;

replace with:
PHP:
  // Delete sessions that are over a week old
  $check_time = time() - 604800;

You can set the value to whatever you like, 604800 is 1 week.
 
Back
Top