Wednesday, April 7, 2010

Django sessions and forms in IE


Django framework allows to store user data in the current browser session.

Each HttpRequest request has session attribute which is dictionary-like object:
request.session['context'] = '2k3'

But keep in the mind that this operation changes current session and it can affect the browser behaviour.

For instance, Internet Explorer enforces page refreshing during previous page loading by "Back"operation. So if you had completed form there (on the previous page) - form's data is lost with "Back" in browser.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.