Re: Changing the session lifetime per user for Remember Me functionality

2006-12-27 Thread Vadim Macagon
Jeremy Dunck wrote: > It sounds to me like it'd be better to make session lifetime more > configurable than it currently is. I'm going to give this a couple more days to see if anyone else has any ideas, and if hacking SessionMiddleware turns out to be the only way then I'll move this over to

Re: Changing the session lifetime per user for Remember Me functionality

2006-12-27 Thread Jeremy Dunck
On 12/26/06, Vadim Macagon <[EMAIL PROTECTED]> wrote: I could probably write a new middleware class to replace SessionMiddleware, with the only difference being the process_response() method that would use a new request.SESSION_EXPIRE_AT_BROWSER_CLOSE setting and if that wasn't set default to us

Re: Changing the session lifetime per user for Remember Me functionality

2006-12-26 Thread Joseph Heck
You can tweak out the sessions to enable the system to remember the person, or you could enable a custom mechanism in your code to store some identifying information in a cookie, and then check that cookie when they hit your site. We did a little of this to remember the user name that logged in a

Changing the session lifetime per user for Remember Me functionality

2006-12-26 Thread Vadim Macagon
Hi, I'm trying to figure out how to implement the "Remember Me" check-box on my login page, oddly enough I haven't managed to find any code snippets for this seemingly common functionality. It seems to me that right now the only way to change the lifetime of sessions is by changing django.