Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Session data corrupted in django

Tags:

Every time when I'm going to my signup page, I'm receiving this error

Session data corrupted 

when I'm trying to signup anyway, POST request status is 302, but User is still created, but didn't save any email to registered user.

Why I'm getting that error and how can I fix it?

Thanks!

like image 429
gjivanya Avatar asked Aug 16 '16 09:08

gjivanya


1 Answers

Sorry for getting late to this post, but by any chance, did you change the SECRET_KEY variable on your project? sessions used to be cyphered using this salt, so if you changed it you have corrupted all your sessions, but don't worry! is not a big deal, the worst-case scenario is for the sessions that were existing before this, those will need to log-in again, and that's it ;)

like image 167
Angel Velásquez Avatar answered Sep 18 '22 01:09

Angel Velásquez