drupal-client icon indicating copy to clipboard operation
drupal-client copied to clipboard

Session/Token expiration when user has not logged in for weeks

Open max1020 opened this issue 10 years ago • 0 comments

what is the best way to handle the case when a user has not logged in for - say - 4 weeks? sessions and token have expired by then.

regarding the sessions, in the settings file there are those values (from https://www.drupal.org/node/590832)

ini_set('session.cache_expire', 2000000);
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_lifetime', 2000000);
ini_set('session.gc_maxlifetime', 2000000);

apart from increasing those values in the settings file, any suggestion how to implement a fool-proof and performant login mechanism? some thoughts on the general implementation are appreciated!

max1020 avatar Aug 15 '15 07:08 max1020