ElkArte Community

General => Chit Chat => Topic started by: radu81 on October 11, 2014, 09:48:49 am

Title: why am I always logged out
Post by: radu81 on October 11, 2014, 09:48:49 am
hello,

I don't know if is happening to me or to all users here. Every time I login and close the open tab on chrome it askes me to login again. I tried the optins: forever,1 week, etc but nothing.

same story on tablet and another pc
Title: Re: why am I always logged out
Post by: Mstcool on October 12, 2014, 01:46:18 am
Where did you login from? Like the login form on the menu or the login page? Try the login page or vice versa and check the forever box
Title: Re: why am I always logged out
Post by: emanuele on October 12, 2014, 05:30:39 am
Good question.
Does it happen only with Chrome or with other browsers as well? (Just to be sure. ;))
Title: Re: why am I always logged out
Post by: radu81 on October 12, 2014, 06:00:31 am
I always login on the main page www.elkarte.net, under the menu and I already tried all options: Forever, 1 month, etc...
On pc and on tablet I use Chrome.

I just did a test with Firefox and it works, I remain logged in even if I close and reopen the browser.  With IE 10 (win8) same problem as Chrome.

I don't have this problem with any other smf forum
Title: Re: why am I always logged out
Post by: emanuele on October 12, 2014, 07:16:01 am
I can reproduce something similar, but only visiting http://elkarte.net/ (without the www) because the home doesn't do the wwwRedirect (not sure why at the moment, maybe @Spuds has an idea?).
Title: Re: why am I always logged out
Post by: Spuds on October 12, 2014, 08:27:33 am
if @TE could check the nginx config for the site, it should have something like:
Code: [Select]
server {
server_name elkarte.net;
return 301 $scheme://www.elkarte.net$request_uri;
}
in it for nginx to redirect non www requests as www ones
Title: Re: why am I always logged out
Post by: emanuele on October 12, 2014, 08:48:58 am
I was thinking more at the Elk code, but at nginx level would be even better! :D
Title: Re: why am I always logged out
Post by: radu81 on October 12, 2014, 04:30:40 pm
that's it ! in my bookmarks it was saved without www

if I enter the www version no problem with chrome. The best solution for this is the .htaccess file

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^elkarte.net [NC]
RewriteRule ^(.*)$ http://www.elkarte.net/$1 [L,R=301,NC]
Title: Re: why am I always logged out
Post by: meetdilip on October 12, 2014, 09:27:07 pm
Haven't logged in since ages. Using Firefox.
Title: Re: why am I always logged out
Post by: radu81 on October 13, 2014, 02:24:33 am
problem solved now! when entering elkrarte.net I am redirectet to www version. Thanks!
Title: Re: why am I always logged out
Post by: TE on October 13, 2014, 02:57:21 am
yep, should be fixed..  ;)
Title: Re: why am I always logged out
Post by: emanuele on October 13, 2014, 03:46:18 am
Thanks! :D