EDSM-NET / FrontEnd

Issues tracker for EDSM
https://www.edsm.net/
37 stars 0 forks source link

Logged out within seconds on Firefox #494

Open BalooUriza opened 1 year ago

BalooUriza commented 1 year ago

On Firefox 109 for Linux, logging into EDSM and then going to any other page results in being logged out. https://hachyderm.io/@rfvgyhn/109887381497037907 also mentions running into the same bug.

klightspeed commented 1 year ago

If you open the F12 developer tools, and in the Storage tab look at Cookies -> https://www.edsm.net, is the PHPSESSID cookie set? This cookie is used by the server to look up your session.

When Remember me is unchecked when signing in, it should be a session cookie (i.e. remembered until you close the browser), and if Remember me is checked when signing in, it should be promoted to expire 336 days from today.

If an extension is interfering with cookies being set, then it could be interfering with this PHPSESSID cookie being set.

If the date on your computer is 336 days or more in the future (at this point that would be 21 Jan 2024), then a Remember me cookie would be expiring as soon as it is set.

BalooUriza commented 1 year ago

Session ID appears to keep changing.

On Sat, Feb 18, 2023 at 8:44 PM Ben Peddell @.***> wrote:

If you open the F12 developer tools, and in the Storage tab look at Cookies -> https://www.edsm.net, is the PHPSESSID cookie set? This cookie is used by the server to look up your session.

When Remember me is unchecked when signing in, it should be a session cookie (i.e. remembered until you close the browser), and if Remember me is checked when signing in, it should be promoted to expire 336 days from today.

If an extension is interfering with cookies being set, then it could be interfering with this PHPSESSID cookie being set.

If the date on your computer is 336 days or more in the future (at this point that would be 21 Jan 2024), then a Remember me cookie would be expiring as soon as it is set.

— Reply to this email directly, view it on GitHub https://github.com/EDSM-NET/FrontEnd/issues/494#issuecomment-1435825909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWDFBRBZYTDESLTMXWW5PLWYGCHLANCNFSM6AAAAAAVAR5GDQ . You are receiving this because you authored the thread.Message ID: @.***>

klightspeed commented 1 year ago

Session ID appears to keep changing.

When this occurs:

Edit: If you check with something like https://api.ipify.org/, does your IP address stay the same, or does it frequently change?

AnthorNet commented 1 year ago

I was not able to reproduce it :(

BalooUriza commented 1 year ago

On Sun, Feb 19, 2023 at 12:13 AM Ben Peddell @.***> wrote:

Session ID appears to keep changing.

  • Open the F12 developer tools
  • Click the Network tab
  • Click the gear on the right-hand side, and click Persist Logs
  • In the filter box in the toolbar, use the filter domain:www.edsm.net -/img -/js -/css
  • Select a request
  • Click the cookies tab for the request
  • Reproduce the issue where it signs you back out after signing in then going to a different page
  • Select the request where it signed you out

When this occurs:

  • Is the PHPSESSID cookie included in the request cookies?

Yes.

  • If so, does the response also contain the PHPSESSID cookie?

Yes.

  • When you signed in, did you use Remember me? If so, what is the current date on your computer?

Correctly set to 19 Feb 2023 at about 10 AM in the Central timezone (and maintained by NTP).