I put 15 minutes expiry/session cookie age in my django app
1) I logged into my application
2) I went to some page.
3) Left that page open in browser.
4) Came back after 16 minutes and clicked on a link on that open page
5) I was thrown to login home page.
As a user it is very confusing, did I do something wrong or did app
fail? what happened here. Explicit message " logged out due to
inactivity"  helps.

Most bank and broker sites give explicit message " You have been
logged out due to inactivity "


On Feb 11, 7:53 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> On Wed, 2009-02-11 at 19:50 -0800, ydjango wrote:
> > Thanks, I will read the documentation.
> > Hopefully it will tell me how to differentiate between user who logged
> > out because they clicked on logout and users who got logged out
> > because of inactivity and expiry.
>
> There is no difference between those users. They are both not simply not
> authenticated.
>
> If you are wanting to do something special when a user selects "log
> out", then you should write your own logout view and do it there.
> However, again, I would question if you're solving the right problem
> here. What you seemed to be asking to do (and this is the first time
> you've mentioned different behaviour for those who actively logged out)
> is saying that when a user visits a page that requires them to be logged
> in (and they aren't logged in), they should be redirected to a login
> page. Why does it matter whether they logged out or were timed out in
> that case? In both situations, they need to be logged in to view that
> page, so the same response is appropriate and suitable.
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to