Jump to content
BFD Calendar

Can't stay logged in

Recommended Posts

Since a few weeks I have problems staying logged into ProcessWire admin. Behaviour is quite random, sometimes I can't even edit one field without being sent to the login page. Sometimes I manage to stay logged in for a few minutes, sometimes longer. It happens with different browsers, computers, operating systems. On same computers my other sites work fine.

ProcessWire 3.0.98 at https://www.birthfactdeathcalendar.net

Share this post


Link to post
Share on other sites
/**
 * sessionExpireSeconds: how many seconds of inactivity before session expires
 *
 */
$config->sessionExpireSeconds = 172800; 
/**
 * ADDED - session.cookie_lifetime: how many seconds of inactivity before cookie expires
 *
 */
ini_set('session.cookie_lifetime', 86400);
/**
 * sessionChallenge: should login sessions have a challenge key? (for extra security, recommended) 
 *
 */
$config->sessionChallenge = true; 
/**
 * CHANGED - sessionFingerprint: should login sessions be tied to IP and user agent? 
 *
 * More secure, but will conflict with dynamic IPs. 
 *
 */
$config->sessionFingerprint = 2; 

 

Share this post


Link to post
Share on other sites

Try setting it to off "$config->sessionFingerprint = 0;" and see if you experience any differences

Share this post


Link to post
Share on other sites

Apparently the setting takes time to settle in. Two days later I'm not logged out at random anymore. Fingers crossed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...