If i clear my cookies and run this view, i get a new session key each
page load.
If I comment out the print, and output the session key in the
template, new session key each load.
If I print session key in both view and template, the session key is
'saved' and remains the same each page load.
def view_session(request):
print request.session.session_key
return render(request, "view_session.html", {})
So how to explain this behavior? at no point do i modify the session.
I can print twice in the view and still get new keys.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.