Welcome, Guest. Please login or register.
Did you miss your activation email?

Username: Password:

Author Topic: http://sharetheseeds.me/forum/ page logs out  (Read 3416 times)

Otorongo

  • Member
  • Karma: 0
  • Posts: 35
  • Trading Score: +20
http://sharetheseeds.me/forum/ page logs out
« on: February 24, 2020, 11:58:42 AM »

Steps to reproduce the issue:

1. I log in through the login page 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.
« Last Edit: February 28, 2020, 04:16:08 PM by Otorongo »
Logged

blackb0x

  • Member
  • Karma: 4
  • Posts: 79
  • Trading Score: +8
Re: http://sharetheseeds.me/forum/ page logs out
« Reply #1 on: February 25, 2020, 03:37:09 AM »

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/
Logged

Otorongo

  • Member
  • Karma: 0
  • Posts: 35
  • Trading Score: +20
Re: http://sharetheseeds.me/forum/ page logs out
« Reply #2 on: February 28, 2020, 04:19:15 PM »

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.
Logged

BubbleCat

  • Supreme feline leader
  • Administrator
  • Karma: 144
  • Posts: 1939
  • Trading Score: +140
  • <3
Re: http://sharetheseeds.me/forum/ page logs out
« Reply #3 on: April 04, 2020, 12:59:43 AM »

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.
Logged
Praise is mandatory.