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.