Well it depends on what the key is in your structure. I personally do not
use a struct for keeping my login stuff, I just use the temp token etc. They
will be independenat of eachother and will expire immediately once the user
closes his browser.

login page

<cfquery name="getLogin" datasource="myDsn">
SELECT username,password
FROM cust_login
WHERE username = '#userName#'
AND      password = '#password#'
</cfquery>
<cfif getLogin.recordCount GT 0>
<cfset session.loggedIn = "true">
<cfelse>
<cflocation url="/index.cfm?fuseaction=login&badlogin=yes">
</cfif>

<CFIF isDefined(session.loggedIn)>
<CFSET session.loggedIn = "false">
</CFIF>


----- Original Message -----
From: "Matt Robertson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 9:58 AM
Subject: Re: StructClear(session) again...


> How is username defined here?  The answer is probably obvious, but I'm
still
> working on my first cup of coffee.
>
> -----------------------------------------
> Matt Robertson      [EMAIL PROTECTED]
> MSB Designs, Inc. http://mysecretbase.com
> -----------------------------------------
>
> ----- Original Message -----
> From: "Douglas L. Brown" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 13, 2001 7:57 AM
> Subject: Re: StructClear(session) again...
>
>
> structClear(session.loggedIn,username) would be a better alternative.
>
>
>
> Db
>
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to