You could just set it to cookie.name = "id, ip" Then Cold Fusion can treat
it as a list, and you can use the list functions to extract parts of it (eg
ListGetAt()). From what you said I don't even think the cookie needs a
value though, the top of your page can look like this...
<cfif IsDefined("cookie.beenhere")>
You have already been to this page.
<cfabort>
</cfif>
_______________________________________________
Pete Freitag
CFDEV.COM
Cold Fusion Developer Resources
http://www.cfdev.com/
-----Original Message-----
From: Bob Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 21, 2000 4:46 PM
To: [EMAIL PROTECTED]
Subject: Another cookie question
Hello everyone,
I want to allow/deny access to a certain part of an application based on
whether or not they have visited that part before. There is no user login,
so I was thinking of doing this with a cookie. Even though it has it's
drawbacks, I was going to use #remote_addr# as the value of the cookie, but
I also need it to recognize another value (something like an ID parameter)
for it to do what I need. So my question is...
Can a cookie have more than one value, or a value that contains a
combination of 2 values?
Or is there a better way to handle what I'm trying to do?
TIA
-Bob
----------------------------------------------------------------------------
--
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.