Flask sessions break

28 views
Skip to first unread message

Kr Ace Kumar Ramaraju

unread,
Oct 7, 2012, 9:40:25 PM10/7/12
to hasgee...@googlegroups.com
FYI

Hi,

Flask 0.10 will switch to itsdangerous based sessions that will use JSON
for storage and no more pickle.  This will break some extensions and
some of your code and will break already issued sessions.

I did put a package called Flask-OldSessions on pypi with the old
session code if you don't want to upgrade (or not upgrade now).

Some Python modules might require pickle based sessions.  Flask-OpenID
is one of them because it depends on python-openid which tries to
serialize classes.  That's a bad idea anyways due to size and everything
so it might be a good idea to use such modules with server side sessions.

In any case make sure you are not going to be surprised on upgrade.  The
docs are updated in that regard already.


Regards,
Armin

Kiran Jonnalagadda

unread,
Oct 9, 2012, 1:08:15 AM10/9/12
to hasgee...@googlegroups.com
Interesting. We use Flask-OpenID for Google login, but it serializes classes into a cookie? That sounds horrible. Will upgrade when it's released and see how it behaves.

Kiran

-- 
Kiran Jonnalagadda

--
You received this message because you are subscribed to the Google Groups "HasGeek Code" group.
To post to this group, send email to hasgee...@googlegroups.com.
To unsubscribe from this group, send email to hasgeek-code...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/hasgeek-code/-/L_exhgaLyBQJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages