[ACCEPTED] Session Cookie Getting Lost

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:points: :-D :eyeroll: :neutral: :nmr: :razz: :raging: :-) ;) :( :sick: :o :? 8-) :x :shock: :lol: :cry: :evil: :?: :smirk: :!:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is OFF
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Expand view Topic review: [ACCEPTED] Session Cookie Getting Lost

Re: Session Cookie Getting Lost

by A_Tin_Can » Wed Feb 07, 2018 7:12 am

Thanks for the link! I've created the bug report here: https://github.com/kestasjk/webDiplomacy/issues/284

Re: Session Cookie Getting Lost

by flash2015 » Tue Feb 06, 2018 5:38 am

OK, this is a bug then. You should be able to use one cookie across www.webdiplomacy.net and webdiplomacy.net:

https://stackoverflow.com/questions/184 ... and-domain

i.e. we should be able to do in the webdip code:

Set-Cookie: JSESSIONID=xxx; domain=webdiplomacy.net

which will work across both domains (RFC 6265).

Re: Session Cookie Getting Lost

by ghug » Mon Feb 05, 2018 7:43 pm

Check that you're logged in both to webdiplomacy.net and www.webdiplomacy.net.

I think most sites redirect to one or the other, whereas we don't. It's definitely a little weird, but such is life.

Re: Session Cookie Getting Lost

by flash2015 » Mon Feb 05, 2018 7:33 pm

Surely the cookies should be set on "/"? Perhaps I need to get out the wireshark.

Re: Session Cookie Getting Lost

by Aereaux » Mon Feb 05, 2018 6:44 pm

I think this happens when you go from the www subdomain to the top level domain or vice-versa.

[ACCEPTED] Session Cookie Getting Lost

by flash2015 » Mon Feb 05, 2018 6:37 pm

Hi,

I am seeing in some scenarios the session cookie(s) getting lost...and I am being shown as logged out. For instance if I go here to look at the championship crown game series:

http://www.webdiplomacy.net/contrib/php ... p?f=7&t=85

And I click on one of the games it shows me as logged out. Is this just me...or are other people seeing this as well?

Of course if I go back and continue to browse the site (e.g. click home from the "championship crown series" page) then my user is still there.

Top