you didn't specify max_age in response.set_cookie('myname', data), which assumes None by default. Therefore that cookie expires when browsers closes.
On Jun 25, 3:58 pm, pr <crico...@gmail.com> wrote: > Hello, > > When I set SESSION_EXPIRE_AT_BROWSER_CLOSE to True, Django > automatically remove not only my session cookie (sessionid) but also > any others cookies creating by using response.set_cookie('myname', > data). Why? I want to keep all cookies without session cookie. > > Thank You. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---