Share The Seeds
Share The Seeds Site => STS FAQ, Rules and Site Support => Topic started by: Otorongo on February 24, 2020, 11:58:42 AM
-
Steps to reproduce the issue:
1. I log in through the login page (http://sharetheseeds.me/forum/index.php?action=login) with the "Always stay logged in" box checked
2. While being logged in in one browser tab, I open http://sharetheseeds.me/forum/ in a new tab, and I get a "Welcome, Guest. Please login or register."
Now, if in 2. I open http://sharetheseeds.me/forum/index.php instead, I am logged in.
-
It's not the path, it's the "www" prefix.
Open your browser's developer tools and compare the storage tab for the following two pages (and note how the second is logged in, while the first isn't).
http://www.sharetheseeds.me/forum/
http://sharetheseeds.me/forum/
Note the difference in the cookie domain for the session.
For more info, see here: https://www.phpied.com/www-vs-no-www-and-cookies/
-
Thanks, but this doesn't seem to have to do with the www-vs-no-www issue. Requests to www are redirected to no-www.
For clarity, I've edited the OP to remove the www from the link, as the same is true without www.
-
I am experiencing the same (I believe) ever since. Basically: I log in, use the site and close it without logging off. Now if I get onto the site again it will ask me to log in, but instead as a shortcut I can just navigate to 'home' and voilá: I'm magically logged in.