Skip to content Skip to sidebar Skip to footer

Flask Session Forgets Entry Between Requests

I'm using the latest Flask/Werkzeug (Flask 0.9) client-side sessions to persist information between requests. The session is not set to be persistent (as I'm fine with the cookie b

Solution 1:

It turns out that the cookie being sent back to the client (Chrome) exceeds the 4096 bytes limit for cookie size. Apparently Django uses server-side sessions by default, which made this problem only appear when I moved my code to Flask. Using server side sessions in Flask such as in flask-kvsession and others should fix the issue.


Post a Comment for "Flask Session Forgets Entry Between Requests"