forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/helpers
justcool393 6dbad04f08 band-aid fix for frozen session issue on signup (#50)
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.**

Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#50
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-06 22:07:12 +00:00
..
actions.py add functionality to disable poll formatting (#35) 2022-12-04 21:46:27 +00:00
alerts.py make the gevent sequential 2022-12-03 01:25:48 +02:00
assetcache.py event asset caching 2022-11-29 14:01:25 -08:00
awards.py sneed 2022-12-04 21:30:33 +02:00
casino.py win loss stats to casino games (#475) 2022-11-22 07:11:01 -08:00
cloudflare.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
const.py band-aid fix for frozen session issue on signup (#50) 2022-12-06 22:07:12 +00:00
const_stateful.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
cron.py Fix monthly jannie patron badge granting. 2022-11-30 23:38:25 -05:00
discord.py fix discord changelog channel 2022-10-30 02:43:55 +02:00
get.py marseys: cache marseys and emojis and fun stuff (#15) 2022-11-27 16:59:36 +00:00
lazy.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
logging.py logging: don't use \n in f-string 2022-11-30 12:49:22 -06:00
lottery.py truncate odds of lottery winning 2022-11-29 00:21:48 +02:00
mail.py use default config vlaue const everywhere 2022-11-15 10:55:00 -06:00
marsify.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
media.py use exiv2 to remove metadata instead of imagemagick, much much much faster 2022-11-28 05:49:17 +02:00
offsitementions.py fix offsitementions 2022-12-04 21:48:28 +02:00
owoify.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
regex.py Remove superfluous #disablepoll command. 2022-12-04 17:15:52 -05:00
roulette.py Fix roulette '0' bet placement & display. 2022-11-22 21:00:03 -05:00
sanitize.py WPD: remove poll limit (#51) 2022-12-06 18:24:41 +00:00
security.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
settings.py config: fix _SETTINGS dict and stray signups 2022-11-30 13:03:46 -06:00
slots.py sneed (rename procoins to marseybux) (#472) 2022-11-21 18:08:29 -05:00
sorting_and_time.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
stats.py remove unnecessary `str()` 2022-11-29 14:29:27 -06:00
treasure.py User.pay_account everywhere, fix lottery payout. 2022-11-20 05:50:02 -05:00
twentyone.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
useractions.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00