About Sessions Duration

antoinegdln4
User www
User www
Posts: 70
Joined: Fri Nov 11, 2016 3:50 pm

About Sessions Duration

Post by antoinegdln4 »

Hey,
Since a few time (maybe one month ? ), i have the feeling that the durations of the sessions are very short.
When i am logged into WP in a afternoon, and writing a post, i have log again twice !
If i try to access to PhpBB ACP, i have, usually, just to log again once for access to ACP. Well, sometimes it works, some others times.... it's an infinite loop fro beeing redirect on my main page without accessing on the ACP. (Loop, like --> Log In, Access ACP, Log Again > ACP... bug, disconnected, i have to log again, etc... ) . but sometimes it works with no problem.

I just wanted to know if there is something in the durations of the sessions in the bridge, or if it's not a problem from the bridge.

Thanks by advance,
Antoine
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: About Sessions Duration

Post by axew3 »

The session, if login is done in WP side login (not phpBB) is done releasing a cookie for phpBB as Remember ME login, that will persist for long time, even if the user do not set remember me option while login.
If login is done in phpBB, than if the user not set remember me onlogin, his cookie will of course expire and this lead to the logout of the user.

You could resolve this, by setting a long session time on ACP -> General -> Server configuration -> Load Settings

Sessions will expire after this time, in seconds. It is set to 3600 seconds.

Not good way to resolve to me but can maybe work.
Add instead little code into phpBB that will set a default Remember Me login for users, despite they will check on not the option-

This should maybe be the reason of the behavior you experience?
antoinegdln4
User www
User www
Posts: 70
Joined: Fri Nov 11, 2016 3:50 pm

Re: About Sessions Duration

Post by antoinegdln4 »

Hello, i apply a very long session duration in phpBB than 3600s (50 000) since last time, but it changes nothing :/
I have to logg myself several times per day, like if my session were "crashing" ....

And sometimes i got this error on the phpBB forum, when there is only 2 members online !!! !

Image

And then the forum crash for at least 2 minutes.

The problem is when i'm writing a post in WP and that i have to logg myself several time.....

Thank you by advance
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: About Sessions Duration

Post by axew3 »

this you report with image is a problem you have into phpBB that can't come out due to wp_w3all.
WP_w3all run only on WordPress, it do not execute any code into phpBB, it execute queries into phpBB db.

Check well your phpBB is working fine, because from image you report, seem that the problem come out in phpBB side due to something wrong on processing code.
antoinegdln4
User www
User www
Posts: 70
Joined: Fri Nov 11, 2016 3:50 pm

Re: About Sessions Duration

Post by antoinegdln4 »

Okey, so this error message is not related to W3all.


But the fact that i have to logg myself several time on WP ? That i "lost" my session ?
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: About Sessions Duration

Post by axew3 »

setup cookie settings into phpBB config ACP to be:
Cookie domain: .yourdomain (or if localhost live as is)
Cookie path: /

which i think is already into your phpBB.

Allow "Remember Me" logins: set to yes
set to 0 value for "Remember Me" login key expiration length (in days):
into phpBB security config ACP.

Save.

Now logout phpBB. If any changes on cookie settings as above, clean cookies on browser, and re-login as remember me into phpBB.

Now go to WP. You should be logged in, and what happen when session expire in this case (login done phpBB side full forum)

to test this about session, setup session length to a lower value like 10 (10 seconds in not on online site) so you can see if when after login, and after 10 seconds, your user is logged out or, as should not is logged out because, remeber me login, if a correct cookie is released, should not let expire your session. This is the setting into
Server configuration -> Load settings -> Session length

what happen?
Post Reply