Welcome Guest, Not a member yet? Register   Sign In
Log info
#4

[eluser]Maarten B[/eluser]
[quote author="Suanko" date="1227622215"]I wonder how to avoid two person to log with the same login/password though...[/quote]

I've made an application that prevents just that, for security reasons. Let's say a user is working on computer A and logged in. The user than walks to computer B and logs in again. My app allows this, but the session on computer A is then canceled, meaning that the user will see a login screen on computer A when he/she clicks on an action in the app on that computer.

I've done this by making a library that autoloads (directly after CI's database lib) and is always run first before the controller of a page is loaded. My library checks if a user is logged in and what the rights are that the user has. If the user was already logged in, the library destroys the original session and creates a new one.

As far as I know you have to program this yourself, it's not a feature of CI.

Good luck with it!


Maarten


Messages In This Thread
Log info - by El Forum - 11-20-2008, 10:24 AM
Log info - by El Forum - 11-25-2008, 01:48 AM
Log info - by El Forum - 11-25-2008, 02:10 AM
Log info - by El Forum - 11-25-2008, 07:39 AM
Log info - by El Forum - 11-25-2008, 09:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB