Posted by Gordon Burditt on 09/24/06 20:29
>How to make a session "exclusive"? When one attempts to open a new
>session either he's warned and asked to wait or any other openned
>session is closed.
If a session is already open, PHP generally just uses that session
and does not try to open another one.
>The need is to force only one user at the same time.
Since there are plenty of ways to leave a session without informing
PHP of that, this is going to be a severe problem. You can time
out sessions but that can be very annoying to your users. Indefinite
lockouts are even worse.
>I'm currently using the database but also looking at a php only solution.
There really isn't a good solution, period, unless allowing a user
a maximum of zero sessions is acceptable.
[Back to original message]
|