band-aid fix for frozen session issue on signup #50

Merged
Snakes merged 11 commits from :fix-bad-cookies into master 2022-12-06 22:07:13 +00:00

through some reason or another, people are somehow getting cookies that aren't prepended with a dot.

this is a problem because both sessions at, as best as I can tell, mix so it tries to read from a different cookie than we write to. this essentially "freezes" the session in place. users are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc.

this attempts to delete bad session cookies (i.e. cookies with a domain that don't start with a dot).

we don't do this on "dotless" domains (and by extension localhost) because browser support for setting cookies on FQDNs that only have one dot has tenuous support among browsers anyway).

this may log some people out, but... their days of being able to do stuff on the site were numbered anyway.

edit: as amazing as this thought was, browsers just wipe the entire cookies completely and there's no way to specifically target dotless cookies. for an issue that affects a few users, better to just tell them to clear their cookies. if this doesn't work, delete service-worker.js and be done with the whole service worker crap. forever. permanently. this PR also includes some QOL improvements.

through some reason or another, people are somehow getting cookies that aren't prepended with a dot. this is a problem because both sessions at, as best as I can tell, mix so it tries to read from a different cookie than we write to. this essentially "freezes" the session in place. users are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc. ~~this attempts to delete bad session cookies (i.e. cookies with a domain that don't start with a dot).~~ ~~we don't do this on "dotless" domains (and by extension localhost) because browser support for setting cookies on FQDNs that only have one dot has tenuous support among browsers anyway).~~ ~~this *may* log some people out, but... their days of being able to do stuff on the site were numbered anyway.~~ **edit: as amazing as this thought was, browsers just wipe the entire cookies completely and there's no way to specifically target dotless cookies. for an issue that affects a few users, better to just tell them to clear their cookies. if *this* doesn't work, delete service-worker.js and be done with the whole service worker crap. forever. permanently. this PR also includes some QOL improvements.**
justcool393 added 1 commit 2022-12-06 18:06:35 +00:00
6fc99839ce hopefully fix for the frozen session issue
through some reason or another, people are somehow get cookies that
aren't prepended with a dot. this is a problem because both sessions at,
as best as I can tell, mix so it tries to read from a different cookie
than we write to. this essentially "freezes" the session in place. users
are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc.
this attempts to delete bad session cookies (i.e. cookies with a domain
that don't start with a dot). we don't do this on "dotless" domains
(and by extension localhost) because browser support for setting cookies
on FQDNs that only have one dot has tenuous support among browsers
anyway). this *may* log some people out, but... their days of being able
to do stuff on the site were numbered anyway.
justcool393 added 1 commit 2022-12-06 19:09:25 +00:00
justcool393 added 1 commit 2022-12-06 20:24:21 +00:00
justcool393 added 1 commit 2022-12-06 20:28:48 +00:00
justcool393 added 1 commit 2022-12-06 20:32:01 +00:00
c2e63a8867 remove fix frozen sessions helper
it doesn't work whatever
justcool393 added 1 commit 2022-12-06 20:33:37 +00:00
justcool393 added 1 commit 2022-12-06 20:35:59 +00:00
justcool393 added 1 commit 2022-12-06 20:47:01 +00:00
justcool393 added 1 commit 2022-12-06 21:34:11 +00:00
6662948452 signup: flex tape solution is to wipe a users
session if signup fails for a bad signup token
justcool393 changed title from hopefully fix for the frozen session issue to band-aid fix for frozen session issue on signup 2022-12-06 21:35:34 +00:00
justcool393 added 1 commit 2022-12-06 21:39:44 +00:00
justcool393 added 1 commit 2022-12-06 21:43:22 +00:00
Snakes merged commit 6dbad04f08 into master 2022-12-06 22:07:13 +00:00
Sign in to join this conversation.
There is no content yet.