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