> How would I go about preventing multiple logins w/ the same username and
> password? I'm currently using client variables for this. I tried checking
> the data field in CDATA but not having any luck. If a user does not log out
> and just closes the window or the session is timed out, there is still a
> record in CFDATA w/ the user's username. How do other sites prevent this??
>
The easiest way of doing this is to create a column in the database
that gets checked when the user logins. If the column is something
other than NULL, then the user is logged in and the subsequent login
is rejected. This is the most reliable method that I know of.
The problem with this is when and how to clear the column. I am not
sure if there is a way to create code in CF that would trigger
removing the value from the column when the session ended, but it
might be one way of handling this.
--
chris johnston
www.fuzzylizard.com
"For millions of years, mankind lived just like the animals and
something happened which unleashed the power of our imagination, we
learned to talk."
Pink Floyd
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

