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.
Anti-Spam Guide
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: 50
Joined: Tue Feb 14, 2017 1:22 pm

Cookie expiration. User can't stay logged in

Post by super.user »

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 =)
For the 2d animated cartoons!!! and web. Of course web :D
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

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

Post by Mick »

Please supply a link to your board.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

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

Post by super.user »

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

and thanks for replay
For the 2d animated cartoons!!! and web. Of course web :D
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
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 »

In your cookie settings you should have Secure Cookie set to "Enabled".
super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

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

Post by super.user »

Thank you. I have just switched it =)

Could there be any other reason?

I also want to add:
Session length is set to 1800.
For the 2d animated cartoons!!! and web. Of course web :D
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

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

Post by Mick »

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©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
canonknipser
Registered User
Posts: 2096
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 »

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: 50
Joined: Tue Feb 14, 2017 1:22 pm

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

Post by super.user »

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/
For the 2d animated cartoons!!! and web. Of course web :D
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

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

Post by Mick »

Your cookies are good now.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

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

Post by Lumpy Burgertushie »

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
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

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

Post by super.user »

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?
For the 2d animated cartoons!!! and web. Of course web :D
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

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

Post by Mick »

Have you tried it with prosilver?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

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

Post by super.user »

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 ?
For the 2d animated cartoons!!! and web. Of course web :D
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

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

Post by Mick »

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©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

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

Post by super.user »

OK. Thanks for replay =)
For the 2d animated cartoons!!! and web. Of course web :D
Locked

Return to “[3.1.x] Support Forum”