Welcome Guest, Not a member yet? Register   Sign In
Session persistence problems
#17

[eluser]fchristant[/eluser]
@sojic. It seems you want an exclusive login lock system. If you're using server-side sessions, i.e. db sessions, it is possible by overruling the Session class of CI. As @WanWizard said, you will have to include a login id in the session table and check for it during session creation. If a session with the same login id from another ip exists in the table, you kill it and create another one. That should log out the older session of the same user on another device.

I would recommend against such a construction though. On the web this is a highly uncommon practice, against expectations of users. Plus, it requires tons of patches to the CI Session library. To make matters worse, all of this effort will make your application not one bit more secure.


Messages In This Thread
Session persistence problems - by El Forum - 12-30-2008, 11:17 AM
Session persistence problems - by El Forum - 12-30-2008, 11:19 AM
Session persistence problems - by El Forum - 12-30-2008, 02:21 PM
Session persistence problems - by El Forum - 01-02-2009, 01:18 PM
Session persistence problems - by El Forum - 01-05-2009, 05:04 AM
Session persistence problems - by El Forum - 01-07-2009, 10:23 PM
Session persistence problems - by El Forum - 05-15-2010, 02:37 AM
Session persistence problems - by El Forum - 10-11-2010, 10:41 AM
Session persistence problems - by El Forum - 10-11-2010, 12:05 PM
Session persistence problems - by El Forum - 10-11-2010, 12:55 PM
Session persistence problems - by El Forum - 10-14-2010, 07:37 AM
Session persistence problems - by El Forum - 10-14-2010, 07:52 AM
Session persistence problems - by El Forum - 10-14-2010, 08:06 AM
Session persistence problems - by El Forum - 10-14-2010, 08:17 AM
Session persistence problems - by El Forum - 10-14-2010, 08:22 AM
Session persistence problems - by El Forum - 10-14-2010, 12:22 PM
Session persistence problems - by El Forum - 10-14-2010, 02:26 PM
Session persistence problems - by El Forum - 10-14-2010, 04:20 PM
Session persistence problems - by El Forum - 10-15-2010, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB