Page 1 of 5

Resolved -> Keeps on logging us out...

Posted: Wed Jul 12, 2017 6:53 am
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.

Re: Keeps on logging us out...

Posted: Wed Jul 12, 2017 9:30 am
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

Re: Keeps on logging us out...

Posted: Wed Jul 12, 2017 10:15 am
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.

Re: Keeps on logging us out...

Posted: Wed Jul 12, 2017 11:46 am
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)

Re: Keeps on logging us out...

Posted: Wed Jul 12, 2017 11:48 am
by axew3
ops ... this is the class.wp.w3all-phpbb.php to replace
class.wp.w3all-phpbb.zip
(19.29 KiB) Downloaded 166 times

Re: Keeps on logging us out...

Posted: Wed Jul 12, 2017 12:33 pm
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...