What are you using for your session engine? Maybe try another one? (
https://docs.djangoproject.com/en/1.3/topics/http/sessions/#configuring-the-session-engine
)

On Sun, Mar 18, 2012 at 9:51 AM, pyramid...@gmail.com
<pyramid...@gmail.com>wrote:

> 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 django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to