The best way to handle cookies is to set a unique ID with a cookie and then
store the user-specific info on the server.  This is what CF does
automagically with sessions...

Howie Hamlin
--
inFusion Project Manager; On-Line Data Solutions, Inc. (631)737-4668
www.CoolFusion.com
============================================================
Please vote for iMS in the Most Innovative category here:
*** http://www.sys-con.com/ColdFusion/readerschoice2000/ ***
============================================================
Check out inFusion Mail Server - the world's most configurable email server

----- Original Message -----
From: Tiffany <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 16, 2000 6:32 PM
Subject: Cookie Question!


> Okay, giving cookies a shot.
>
> I don't really see all that much explaination in Forta's book on cookies.
> Anyhow, do I need to set multiple cookies if I want to to remember
> multiple variables?
>
> Or wait.. shouldn't I just set a cookie to remember a Username and then
> use session variables to get the other info from the database?  And then
> if I dont want a page to be viewed without the person having a cookie
> present, just check for a cookie in the begining of each page?
>
> For instance,
>
> After all the user/pass checking, loginaction.cfm will contain:
>
> <cfcookie name="Username" value="#Session.Username#" expires="14">
> <cflocation url="start.cfm">
>
>
> Then in start.cfm have the following:
>
> <cfif IsDefined("cookie.Username")>
>        <cfif cookie.Username IS 0>
>                 <cflocation url="login.cfm?error=1">
>        </cfif>
> </cfif>
>
> Would that work? Or am I doing this all wrong?  I wouldn't doubt it =)
>
> Thanks!
>
> *~Tiffany~*
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to