Tuesday, November 30, 2010

Re: Sample Auto Log Out Code

Many thanks. This worked swell, and I also set the cookies expire when
browser closed setting.

On Nov 24, 11:39 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Nov 24, 4:23 pm,octopusgrabbus<old_road_f...@verizon.net> wrote:
>
> > Sorry for the late reply. Most of my users will not remember to log
> > out. After, say four hours, I'd like to log them out, if of course
> > they're not already logged out.
>
> That's just a matter of setting session cookies to expire properly.
> You need to set SESSION_COOKIE_AGE to 14400 (=4*60*60) to get it to
> expire after four hours, instead of the default two weeks.
> --
> DR.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment