Resolved -> Keeps on logging us out...

ave

Resolved -> Keeps on logging us out...

Post by ave »

Hello,

I have installed everything according to the instructions and it works relatively fine. The problem is that it keeps on logging us out. Sometimes after few hours, sometimes after few days, but it's really annoying. It just happened again and I just see that "phpbb3_qac2sy_k" cookie has empty value so I guess that's what's causing the problem. Could you help me in any way? Thank you.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Keeps on logging us out...

Post by axew3 »

yes this should be the problem so.
But when it happen? It should only happen if an user login on phpBB, with no "remember me" option.
The reason is that if the phpBB cookie not contain the K value (for the remember me login) than the login in WP is checked against session time and if it is expired the user will be logged out.

If the login is done in WP side, despite the user not check the "remember me" onlogin, the phpBB k cookie is by the way released by default, so this should not happen in this case. Isn't it?
Let know

p.s What value have you have set in phpBB ACP for the ""Remember Me" login key expiration length (in days):" option? It is under ACP -> Security settings
ave

Re: Keeps on logging us out...

Post by ave »

It's the same when I login on wordpress side and with "remember me" option. Logged out after few hours or days.

"Remember Me login key expiration length (in days)" is set to 0.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Keeps on logging us out...

Post by axew3 »

it's strange, can you link the site?
Also you can try to substitute class.wp.w3all-phpbb.php with the follow, and see ('please report) if this resolve?

I'll take a look to all about "session code" (and all the rest) before 1.7.5 (but hope even on 1.7.4)
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Keeps on logging us out...

Post by axew3 »

ops ... this is the class.wp.w3all-phpbb.php to replace
class.wp.w3all-phpbb.zip
(19.29 KiB) Downloaded 166 times
ave
User ww
User ww
Posts: 21
Joined: Wed Jul 12, 2017 12:18 pm

Re: Keeps on logging us out...

Post by ave »

Okay, I see, you replaced this

Code: Select all

// last visit update both once
piece of code with

Code: Select all

 // last visit update
. We will see if that does anything...
Post Reply