Re: How to set "REMEMBER ME"

2007-01-22 Thread Vadim Macagon
You can't change session lifetime on the fly with the default SessionMiddleware, but you can write your own middleware that's more flexible. I just wrote up my solution on the wiki here: http://code.djangoproject.com/wiki/CookBookDualSessionMiddleware -+ enlight +- Rob Hudson wrote: > It woul

Re: How to set "REMEMBER ME"

2007-01-22 Thread Rob Hudson
It would be interesting to know, however, how to make this work like this: Default case: when the user doesn't check the "remember me" box... - Remove the cookie on browser close. This is great for sites that might get used in public places like libraries. - You can do this with: settings.SESSIO

Re: How to set "REMEMBER ME"

2007-01-21 Thread Joseph Heck
Set the session length up - I use 2 weeks: SESSION_COOKIE_AGE = 1209600 in settings.py On 1/21/07, Guillermo Fernandez Castellanos < [EMAIL PROTECTED]> wrote: > > > Hi, > > I have some web sites where some identification is needed. In those, > when I log in and do not explicitelly log out, I k

Re: How to set "REMEMBER ME"

2007-01-21 Thread Guillermo Fernandez Castellanos
Hi, I have some web sites where some identification is needed. In those, when I log in and do not explicitelly log out, I keep logged for days and days, and when I go back to the page I'm still logged in. i guess (and it's only a guess) that, because the authentification work with sessions, you'

How to set "REMEMBER ME"

2007-01-21 Thread johnny
How do I set "remember me" in Django, so that user doesn't have to log in every time. Is there a good tutorial or sample code some where? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos