Forum Moderators: coopster
How can I avoid new PHPLIB sessions from the same user on the same application?
I mean something like detecting the user and throwing exception "Blahblah you're already logged in..."
Thx for msgs...
use the session data to save username and loginstate. then check against these values if the user already logged in.
is it that what you were asking for?
- hakre
You mean the data from active_sessions table? Do I need to make some SELECT, or can I get the userID from "auth"? Could you give me some code sample?
i first got it wrong, session is not needed for this because the authentication is already supplied by phplib.
But I cant find nowhere some samples how to do it. It seems like nobody uses this feature ;-)
I need some code...