I was wondering if there was a simple way to allow only one user identity at the time?
By this I mean if a user is logged from a first computer and tries to log in from another one, he will be logged out from the first one.
I tried to call a logout() before performing login() in the authenticate() function of the LoginForm model, but I get redirected to the home URL instead of being logged in.
I tried to add a row corresponding to the user id in the session table generated by CDbHttpSession but it seems to be a problem for the class because it does not login any more.
In fact, I don’t really see where I have to insert the user id in the session table, is it directly in the session class, the user identity one, the actionLogin() function, …?