In one application, I used a session variable which pointed to the
database.  In the application.cfm I check the database for the last
usage date-time for that user. 

If more than 15 minutes I present the login page, if less than that I
update the database with now() as the last usage time.

This was to protect against a user walking away from the PC while logged
in but it also has the virtue of acting as an automatic logout.



Redd Liao wrote:
> 
> hi, I am a CF beginner.
> I made log-in and log-out pages by using application
> and session variables to pass username and password to
> each page.  When login, set username and password to
> session variables. When logout, delete username and
> password from session variables. The problem is:
> 
> 1. If the users close browsers without logout, how can it
>     delete session variables?
> 2. I can use same username and password to login on
>     different computers at the same time. How can I
>     make it unique?
> Thanks!
> 
> Redd
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to