• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Users don't stay logged in.

#1
For some reason users don't stay logged in (even with the 'stay logged in' check box checked) meaning when they return to the site their user name and password isn't already filled out.

So if I go to my site I have to start typing in my name and it will auto fill the password. Other xenforo sites I visit keep me logged in so I don't have to type anything.

I'm not sure if this is a browser issue or xenforo setting.

Thanks for the help!
 
#8
hmm from the above post, when I click the first www link I'm not logged in.

When I click the second link without the www I'm logged in.

What's that mean?
 

Amaury

Well-known member
#11
hmm from the above post, when I click the first www link I'm not logged in.

When I click the second link without the www I'm logged in.

What's that mean?
It means you've logged in on the non-WWW version, but not the other.

You mean verbally tell them that or is there something wrong with how I have urls setup?
You'll want to create a redirect so that if someone types WWW, it will force them to the non-WWW or vice-versa.
 
#16
Seems you have to decide what you want to use. with WWW or without WWW
Then you have to force that in your .htaccess
in my case I don't like the www's
so, I'm using this code:
After:
Code:
RewriteEngine On
Code:
RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.([^.]+)$
RewriteRule ^(.*)$ http://%1.%2/$1 [R=301,L]
https://xenforo.com/community/resources/forcing-url-without-www-prevent-duplicate-content.1103/
I guess I need to check what I setup in google for preference and then set it to that.

Thanks for the code :)