For some very odd reason, you can't set a cookie and then check for it within the same
process.
Your options:
1) Use session variables instead. (recommended)
2) Use HTML meta-refresh to redirect to a cookie-checking page. (CFLOCATION will NOT
work)
3) Prompt the user to "continue" and have them go the the cookie-checking page on
their own with either a link or form button.
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: Peter Benoit [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 18, 2000 11:41 AM
> To: '[EMAIL PROTECTED]'
> Subject: [CF-Talk] losing my cookies
>
>
> I have a form page which submits to a second page. The second page sets a
> cookie if the user/pass is accepted. Now, the form page does a check on
> this cookie if it's revisited, if the cookie exists I want it to
> redirect to
> the second page. Problem is, the form page will know the cookie is there,
> but the second page doesn't seem to be able to read it. I thought I read
> somewhere that cflocation won't work with cookies, so I tried a
> location.href="secondpage.cfm" but the second page still can't find the
> cookie.
>
> What can I do?
>
> -Peter
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/[email protected]/
> 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.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.