Cookie expiration. User can't stay logged in

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
super.user
Registered User
Posts: 41
Joined: Tue Feb 14, 2017 1:22 pm

Cookie expiration. User can't stay logged in

Post by super.user » Tue Jan 02, 2018 8:05 am

Recently I got user's report. His sessions is expired in few days. But he should be logged for a longer time.
I checked cookie expiration in my browser. And it is approximately one year.
And "Remember Me" in security settings is set to 0.
What the problem could be here? Could anyone give some suggestions ?

Also, I can't understand explanation of "Remember Me" button:
Number of days after which "Remember Me" login keys are removed or zero to disable.
"or zero to disable" phrase.
It means disable expiration time(session will be live as long as it possible) ? or disable "remember me" function ?

Thanks =)

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19718
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably . . .

Re: Cookie expiration. User can't stay logged in

Post by Mick » Tue Jan 02, 2018 9:57 am

Please supply a link to your board.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

super.user
Registered User
Posts: 41
Joined: Tue Feb 14, 2017 1:22 pm

Re: Cookie expiration. User can't stay logged in

Post by super.user » Tue Jan 02, 2018 8:41 pm

Here the link https://www.tracker-software.com/forum3/

and thanks for replay

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51252
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Cookie expiration. User can't stay logged in

Post by Brf » Tue Jan 02, 2018 8:55 pm

In your cookie settings you should have Secure Cookie set to "Enabled".

super.user
Registered User
Posts: 41
Joined: Tue Feb 14, 2017 1:22 pm

Re: Cookie expiration. User can't stay logged in

Post by super.user » Wed Jan 03, 2018 6:32 am

Thank you. I have just switched it =)

Could there be any other reason?

I also want to add:
Session length is set to 1800.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19718
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably . . .

Re: Cookie expiration. User can't stay logged in

Post by Mick » Wed Jan 03, 2018 1:22 pm

I don't see any point you changing anything else, see how it goes first. The package works as is from installation in 99% of cases. Any type of cookie incorrectly set will give you this sort of issue.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

User avatar
canonknipser
Registered User
Posts: 1557
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Cookie expiration. User can't stay logged in

Post by canonknipser » Wed Jan 03, 2018 5:03 pm

What is you session IP validation set to? If it is A.B.C (as default), set it to A.B or NONE

Some providers change IP-addresses of their customers quite often with new addresses in a different range, so when after 30 Minutes (as set in your session length) the new IP address does't match the first part of the old one and your member's session is invalid and the member is logged out.
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB

super.user
Registered User
Posts: 41
Joined: Tue Feb 14, 2017 1:22 pm

Re: Cookie expiration. User can't stay logged in

Post by super.user » Tue Jan 09, 2018 10:57 am

My session IP validation set to NONE.
And I configured cookies settings according to the following article https://www.phpbb.com/support/docs/en/3 ... -settings/

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19718
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably . . .

Re: Cookie expiration. User can't stay logged in

Post by Mick » Tue Jan 09, 2018 12:26 pm

Your cookies are good now.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

User avatar
Lumpy Burgertushie
Registered User
Posts: 64692
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Cookie expiration. User can't stay logged in

Post by Lumpy Burgertushie » Tue Jan 09, 2018 5:45 pm

and just FYI, the default session time is 60 minutes. 30 minutes ( your setting) is rather short.
also, when you are logged in, if you do not touch it for 30 minutes, you are logged out. as soon as you click on anything, it will log you back in
assuming you have the remember me box checked.

nobody stays logged in for days they just have the remember me box checked so that the board automatically logs them in when they visit the board or click on something after their session expires.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

super.user
Registered User
Posts: 41
Joined: Tue Feb 14, 2017 1:22 pm

Re: Cookie expiration. User can't stay logged in

Post by super.user » Wed Jan 10, 2018 6:55 am

Thanks for replay, Lumpy Burgertushie. :D
Users have already checked "Remember me" button. :(

I noticed following error log in maintenance tab: "Session IP/browser/X_FORWARDED_FOR check failed".
and I realized that in some case user's browser are changed.
How could that be possible?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19718
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably . . .

Re: Cookie expiration. User can't stay logged in

Post by Mick » Wed Jan 10, 2018 1:18 pm

Have you tried it with prosilver?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

super.user
Registered User
Posts: 41
Joined: Tue Feb 14, 2017 1:22 pm

Re: Cookie expiration. User can't stay logged in

Post by super.user » Wed Jan 10, 2018 2:29 pm

NO, I have not.
But after removing browser check in security settings it seems all work fine. But I don't think this is a good solution.

I also have found this topic.
viewtopic.php?f=46&t=943885
And we are using reCaptcha. Could it be related with this issue ?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19718
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably . . .

Re: Cookie expiration. User can't stay logged in

Post by Mick » Wed Jan 10, 2018 6:59 pm

If you think it's reCaptcha, disable it and use Q&A instead, you'll soon know. The thing is, phpBB out of the box, doesn't suffer with cookie expiration from installation. There is the odd whoopsie where dots aren't placed in the right place but thousands don't have the issue. Try renaming your cookie to phpbb3_magtc and see what happens.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

super.user
Registered User
Posts: 41
Joined: Tue Feb 14, 2017 1:22 pm

Re: Cookie expiration. User can't stay logged in

Post by super.user » Mon Jan 15, 2018 12:00 pm

OK. Thanks for replay =)

Locked

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 11 guests