Hi Salima,
On 15/09/2020 02.18, Salima Begum wrote:
Hi all,
By using python and django.
1. User Login with one account in different devices.
2. If he login into another device we sent user to email. Saying that
New device login.
3. After we show user in his/her account activity page With that
account how many devices are login.
4. Then if user clicks on sign-out to a particular device then that
particular device should be logoff and deleted from activity list.
5. The only remain thing is that signout to a particular device.
6. How to do signout to a particular device from his activity list.
For example, User has 2 devices and He/She login from 2 devices with
one account. In his account activity it will show 2 devices how to
signout another device from his account activity. In python and django
I don't have any experience with that, but I'd look into how you could
make sessions persistent and have multiple sessions associated with the
same user account.
That way it should be possible to have the user expire/delete any of the
current sessions after a successful login.
You might have to a bit of extra trickery to try and associate a session
with a device. The device in that case would be whatever client was
saving the session cookies, e.g. two different browsers on the same
device would equal two different devices.
That's probably what I would try to do. Be aware that it's probably
impossible to this in a reliable way no matter what and of course, don't
ever trust whatever the client sends you.
Hope that helps a bit.
Kind regards,
Kasper Laudrup
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/6b5f1a14-cca6-29d9-3ed3-66cd1a26e3b4%40stacktrace.dk.