Re: Anonymous session carries over to authenticated session

2011-11-15 Thread Byron Ruth
Ticket opened for documentation: https://code.djangoproject.com/ticket/17236 On Nov 15, 3:35 pm, Byron Ruth wrote: > Indeed, all of the settings are slowly becoming unwieldy. I will write > my own `login()` function in the meantime, but the docs should > definitely be update to note this behavior

Re: Anonymous session carries over to authenticated session

2011-11-15 Thread Byron Ruth
Indeed, all of the settings are slowly becoming unwieldy. I will write my own `login()` function in the meantime, but the docs should definitely be update to note this behavior. On Nov 15, 2:27 pm, ptone wrote: > On Nov 15, 10:44 am, Byron Ruth wrote: > > > > > How would everyone feel about maki

Re: Anonymous session carries over to authenticated session

2011-11-15 Thread ptone
On Nov 15, 10:44 am, Byron Ruth wrote: > > How would everyone feel about making this a setting, e.g. > SESSION_FLUSH_AT_LOGIN? If false, it would behave as it does now > otherwise it would flush the non-auth session. I do think the current behavior is worth a note in the docs - like you say -

Re: Anonymous session carries over to authenticated session

2011-11-15 Thread Byron Ruth
Here is the relevant code: https://github.com/django/django/blob/master/django/contrib/auth/__init__.py#L63-70 On Nov 15, 1:44 pm, Byron Ruth wrote: > Posted original on the Django Users group because I thought I was > missing > something:http://groups.google.com/group/django-users/browse_threa

Anonymous session carries over to authenticated session

2011-11-15 Thread Byron Ruth
Posted original on the Django Users group because I thought I was missing something: http://groups.google.com/group/django-users/browse_thread/thread/a612987d2c3487e4 Per what Tom mentions on the Django Users thread: - an authenticated user logging in under a different account keeps the session