>
> Can I search through session variables?
> I want to catch logging of two users with the same account.
> And I want to delete session variables if user wants to log out.
> Can somebody help me? Maybe somebody can some URL to the articles?
>
No, session variables are only available to an individual session.
One suggestion would be to mark the user id as locked in the database and
store a login time.
Now prevent any further logins until either the user logs out or the login
time reaches a predetermined time limit eg. if the user hasn't logged out
after 20 minutes, let the user login.
You probably want to do some extra things like actually making the login
time, a last access time, and whenever the user hits the db update the last
access time. That way you'll get a truer "inactive" period than just using
login time.
HTH
Regards
Stephen
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.