Monday, June 3, 2013

session_key varies

Hi,

Is it normal that a session_key varies when a user is not logged in? And if so, should I then use request.COOKIES instead to store information in?

In one of my projects, users can order a calendar and upload their own photos, one for each month. In between, I like to keep track of which photos have been uploaded to a certain calendar. Users don't need to login to do this. 

First, I was using the session_key to keep track of a calendar order, but I noticed that the key kept on varyingr when a colleague on a Mac clicked a button.

Now I am wondering whether this is normal behavior, or can I do something to prevent it. 

And should I use request.COOKIES instead? 

Thanks for your help!

Wim 

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

No comments:

Post a Comment