Ok , so timeout happens on browser (client ) side, then i need to figure out some javascript to do detect that.
I was hoping in django there is way to detect that no session cookie was sent or session cookie is expired and then redirect to a page with message " For your security, you have been logged out due to inactivity. Please login again..." On Feb 9, 7:27 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sun, 2009-02-08 at 12:07 -0800,ydjangowrote: > > I am setting inactivity session time out using - > > a) request.session.set_expiry(900) and > > b) SESSION_COOKIE_AGE = 900 > > > I believe both work exactly the same way. Please correct me if they > > have any different behavior. > > > How do I detect this time out in my app and give user a page that they > > have been timed out due to inactivity. > > I am using django standard authentication using autheticate(), login() > > and logout() > > You don't need to do anything like this. The browser simply won't send > the session cookie if it's too old (the session expiry time is used to > compute the cookie expiry time). > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---