Keeps logging users out

User avatar
axew3
w3all User
w3all User
Posts: 2708
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Keeps logging users out

Post by axew3 »

exactly this is the problem.
Would be more easy for me to understand why with access to this server, or almost visiting the site to exactly understand when it happen, may i can reverse mentally. Can you reply here or pm me the url to the site?
Why on earth would it dissappear
so can you detect this:
login in wp side, then remain in wp side: the k cookie value persist?
in which moment it reset?
When you visit phpBB side?
ave
User ww
User ww
Posts: 21
Joined: Wed Jul 12, 2017 12:18 pm

Re: Keeps logging users out

Post by ave »

axew3 wrote: Mon Mar 04, 2019 8:37 am exactly this is the problem.
Would be more easy for me to understand why with access to this server, or almost visiting the site to exactly understand when it happen, may i can reverse mentally. Can you reply here or pm me the url to the site?
Why on earth would it dissappear
so can you detect this:
login in wp side, then remain in wp side: the k cookie value persist?
in which moment it reset?
When you visit phpBB side?
While I remain in WP side - _k cookie persist. It resets when I stay idle for a long time (I changed session length in phpbb admin back to 60 seconds, just to test), and after minute or two staying idle - I visit phpbb and _k is then reset...

I sent you info for test login on my site, so you can try the same principle. Login, surf on WP side and then forget about it for a few minutes. After that, come back and visit forum - I think it will log you out as soon as you try to surf on forum.
User avatar
axew3
w3all User
w3all User
Posts: 2708
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Keeps logging users out

Post by axew3 »

may i'm wrong, but can you please access your ACP
and under
Server configuration -> Security settings -> Remember Me" login key expiration length (in days):
you need to setup this value as 0.
Isn't it? May setup it as 0 and all should work?
ave
User ww
User ww
Posts: 21
Joined: Wed Jul 12, 2017 12:18 pm

Re: Keeps logging users out

Post by ave »

It was set to 365 days. So, I set it now to 0, and we'll see what happens in next few minutes...
User avatar
axew3
w3all User
w3all User
Posts: 2708
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Keeps logging users out

Post by axew3 »

Perfect
ave
User ww
User ww
Posts: 21
Joined: Wed Jul 12, 2017 12:18 pm

Re: Keeps logging users out

Post by ave »

Hm... Seems better now, at least is not logging me out after a minute or two... It logged me out on mobile, but I cleared cache and tried again, now it seems fine.

I don't want to jinx it, but it seems to be working. But where is the logic? Login key expiration was set to 365 days...
Locked