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

Username: Password:

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

Otorongo

  • Member
  • Karma: 0
  • Posts: 22
  • Trading Score: +15
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: 3
  • Posts: 51
  • 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: 22
  • Trading Score: +15
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