librelist archives

« back to archive

Flask-Sijax: Setting session cookie on obj_response

Flask-Sijax: Setting session cookie on obj_response

From:
chrickso
Date:
2012-07-05 @ 19:24
Hi,

I'm trying to set a session['user_id'] after a Sijax.request.

It returns an "obj_response" that accepts tacked on jquery code but I can
figure how to added my session cookie update to its headers? Can anyone
help?

flask-sijax docs: http://packages.python.org/Flask-Sijax/

about obj_response:
http://packages.python.org/Sijax/api.html#sijax.response.BaseResponse

Thanks!

- chrickso