In this thread you will find an interesting conversation about preventing multiple sessions from the same user: https://groups.google.com/forum/#!searchin/web2py/multiple$20login%7Csort:date/web2py/Zz6zvYav4Sw/2xHJ8loVBgAJ
I use the approach suggested by Massimo: *"when a user first logs in, store a uuid in the session and write it in the database (in a new custom field in the auth_user table). When a request arrives if the uuid in the session does not match the uuid in the database call auth.logout()"* El jueves, 8 de agosto de 2019, 7:31:15 (UTC-3), Naveen Kumar escribió: > > i am working on a project where i want to disable simultaneous user login > for same user . currently it is there in web2py version > 2.16.1-stable+timestamp.2017.11.14.05.54.25) > > i also want to delete or expire previous session , when user again login > with the same user (of which he login priviously). > > please suggest some ideas > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/13680f37-46b7-4ceb-8bea-b1a71333e52d%40googlegroups.com.

