On Dec 28, 11:26 am, NMarcu <[email protected]> wrote:
> Hello all,
>
>    I want to let only one same user to be login in the same time. If I
> connect from Paris with admin, and other user try to connect with
> admin from other location, to get a message like it is already
> connected. How can I do something like this?

That's not easy. 'Logged in' status is not something that is stored on
the server, but on the client (in the session). So the server does not
actually know who is logged in at any one time. It does record the
last time a particular user logged in, and I suppose you could create
a user profile that records the last time the user performed an
action, but it's not clear how you would determine that a user had
logged out or that the session had expired.
--
DR.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to