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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...