For Question #1...use the following code:

<!--- Reset the CFID and CFToken cookies to expire session and client
variables
      after the user's browser closes --->
<CFIF ISDEFINED("Cookie.CFID") AND ISDEFINED("Cookie.CFToken")>
    <CFCOOKIE NAME="CFID" VALUE="#Cookie.CFID#">
    <CFCOOKIE NAME="CFToken" VALUE="#Cookie.CFToken#">
</CFIF>

For Questions #2....not sure what you mean.  If you are trying to see if the
user is logged in, so that they can't log in from different machines try the
following

Create a "logged_in" field in your database and make it true when the user,
first logs in.  Then check this field before allowing him/her to log in
again.  You can also write a script that runs through your database to see
which people are still logged in (keep a time/date stamp of last login) and
log them out automatically if it is after a certain amount of time)


- Marcelo
[EMAIL PROTECTED]
Level 2 Labs
http://www.level2labs.com/

-----Original Message-----
From: Redd Liao [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 9:44 AM
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