Use a cookie to mainstain state.  Do <cfcookie name="logged_in"
value="true"> (don't include a expiration time) and it will expire once the
browser is closed out or if its deleted.  Also, to keep multiple log-in keep
a application variable that keeps a record of the users logged in and querry
against that during the log-in process.

--=@ greg @=--
----- Original Message -----
From: "Mark Woods" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 10:36 AM
Subject: RE: application and session


> At 08:53 AM 1/23/2001 -0300, you wrote:
> >You can use cgi var REMOTE_ADDR for identifies user.
>
> it identifies the IP of the client sending the request - not the same
> thing, at all.
>
>
> >
> >-----Original Message-----
> >From: Redd Liao [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, January 22, 2001 2:44 PM
> >To: CF-Server
> >Subject: application and session
> >
> >
> >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