Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Jayme65 on August 27, 2015, 03:39:47 PM

Title: Always stay logged in..not working
Post by: Jayme65 on August 27, 2015, 03:39:47 PM
All of a sudden "Always stay logged in" doesn't work anymore (reported by many users). Users are forced to log from one session to another.
Do you see a reason to this? There wasn't update to SMF done, neither new plugin installed or updated when it raised!

Thanks for your help!
Title: Re: Always stay logged in..not working
Post by: JBlaze on August 27, 2015, 04:27:22 PM
Have you recently changed any server settings or cookie settings within SMF?

Are you running multiple forums, possibly with the same cookie name on the same domain?

Are you using database stored sessions?
Title: Re: Always stay logged in..not working
Post by: Jayme65 on August 27, 2015, 07:02:43 PM
JBlaze,

Thanks for your reply!

> Have you recently changed any server settings or cookie settings within SMF?
No

> Are you running multiple forums, possibly with the same cookie name on the same domain?
No

> Are you using database stored sessions?
Yes

I've tried to set the 'Default login cookies length (in minutes)' to '3153600' (to test the 'Forever' behavior) , with no more chance!!

PS: one thing I'm just thinking about: there's cloudflare enabled on my whole domain (but that not new!!)
Title: Re: Always stay logged in..not working
Post by: margarett on August 27, 2015, 07:04:55 PM
Does this happen to everyone?
It suggests that SMF's cookie is being disregarded by the browser, which should be a local problem...

Can we get a phpinfo?
What is a phpinfo() file? (http://wiki.simplemachines.org/smf/What_is_a_phpinfo()_file)
Title: Re: Always stay logged in..not working
Post by: Jayme65 on August 27, 2015, 07:10:20 PM
> Does this happen to everyone?
Well, at least by me and the 3 last users thinking to mail to me about this 'problem'

> Can we get a phpinfo?
Sure, please do
http://www.mgalaxy.com/phpinfo.php
Title: Re: Always stay logged in..not working
Post by: margarett on September 01, 2015, 07:09:55 AM
Sorry for the delay here. Is this still a problem?

If so, you can use Firefox Developer Tools which will show you cookie informations for the page you're viewing. There you can see the expiry date for it. Eg: right now I see:
Name   SMFCookieDE001
Expires   Tue, 15 Jun 2021 13:18:02 GMT
Title: Re: Always stay logged in..not working
Post by: Jayme65 on September 01, 2015, 11:44:48 AM
The cookie seems good, I opened my forum and connected...but I'm now disconnected while the cookie reports  'expires on: 30/08/2021' !!
Title: Re: Always stay logged in..not working
Post by: Kindred on September 01, 2015, 12:06:18 PM
what is the URL of your site in the admin server settings?
What is the address that you are using to ACCESS your site?

Do you have an htaccess file or any sort of redirect?

Are you using prettyurls?
Title: Re: Always stay logged in..not working
Post by: Jayme65 on September 01, 2015, 12:18:36 PM
Quotewhat is the URL of your site in the admin server settings?
Forum URL : http://www.mgalaxy.com/forum

QuoteWhat is the address that you are using to ACCESS your site?
http://www.mgalaxy.com/forum/

QuoteDo you have an htaccess file or any sort of redirect?
Yes, but only with this content:
<IfModule mod_security.c>
# Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>


QuoteAre you using prettyurls?
No

I don't know if this is important, but I'm working with Cloudflare on my whole site

Thanks
Title: Re: Always stay logged in..not working
Post by: margarett on September 01, 2015, 12:25:58 PM
The most important thing to understand for now is whether or not this happens to everyone. If so, it might be related to CF but that would be a first...

Did you try in another computer?
Title: Re: Always stay logged in..not working
Post by: Jayme65 on September 01, 2015, 01:27:10 PM
QuoteThe most important thing to understand for now is whether or not this happens to everyone.
Yes it is!
At first I thought that it was a 'problem' with my computer/browser. It's only when users begun to report me the same symptoms that I decided to come here and ask for help!
Title: Re: Always stay logged in..not working
Post by: Kindred on September 01, 2015, 01:41:13 PM
actually, I suspect that it may be related to cloudflare...

Can you disable cloudflare and see if it starts working?
Title: Re: Always stay logged in..not working
Post by: Jayme65 on September 02, 2015, 07:20:12 AM
I did it..and it changed nothing!
Title: Re: Always stay logged in..not working
Post by: margarett on September 29, 2015, 07:59:59 AM
@Jayme65 do you still require assistance with this issue?

If so, I suggest you to go to your SMF database, table smf_settings and check the values for
cookieTime
databaseSession_enable
databaseSession_loose
databaseSession_lifetime
Title: Re: Always stay logged in..not working
Post by: Jayme65 on September 29, 2015, 11:35:26 AM
It appears that the problem is coming from my web-hosting provider (Arvixe) and their recent installation of 'Varnish Cache' ! (but it's not fixed yet, it seems to be a difficult task for them to have Varnish Cache installed and keep session activated!!??)
So it's not a problem with SMF...sorry for alerting you and thanks for your support
Title: Re: Always stay logged in..not working
Post by: Miker1029 on May 21, 2016, 10:21:08 PM
Quote from: Jayme65 on September 29, 2015, 11:35:26 AM
It appears that the problem is coming from my web-hosting provider (Arvixe) and their recent installation of 'Varnish Cache' ! (but it's not fixed yet, it seems to be a difficult task for them to have Varnish Cache installed and keep session activated!!??)
So it's not a problem with SMF...sorry for alerting you and thanks for your support

LOL, I just started having this problem the last few days, same EXACT Symptoms, and SAME EXACT HOST!  "Arvixe"!

Mike