This is a known issue in CF as way back as I can remember......the solution
as stated is to use a Javascript location to do the job of the cflocation.
for pre-MX installed. 




-----Original Message-----
From: Lovelock, Richard J [mailto:[EMAIL PROTECTED] 
Sent: 20 February 2004 10:15
To: 'cflist'
Subject: [ cf-dev ] Cookie not working with redirect (CFLOCATION)

Guys need your help...
 
this is a pretty high profile piece of work which needs to be done for
Monday so would really appreciate any advice
 
i am a bit stuck on a funny that is occurring.....
 
- we have a form where a user can log in to the Westminster website
- user enters username password then submits form
- goes to action page, does query to check if user exists in DB
- the next piece of code basically writes a cookie to the client machine
with the 'customerid' retrieved in query
- then straight after does a <CFLOCATION> to the main home-page which tests
for presence of cookie
 
-- the problem is that the cookie is not being written on to the user's
machine so that the homepage does not recognise them
-- however, if I take out the <CFLOCATION> tag - the cookie gets written OK
-- it is almost as if the page is redirecting to new URL before the cookie
has time to be written - does that sound feasible??
-- is there any way to make the code pause to allow cookie to write before
redirecting or any other solution to this????
 
CODE IS:
 
<cfoutput>Start Cookie</cfoutput>

 

<cfcookie name="customerid"

          value="#pwdcheck.customerid#"

          expires="NEVER"

          domain=".westminster.gov.uk">

                                  

<cfoutput><br>End Cookie</cfoutput>

 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>

<cflocation url="http://www1.westminster.gov.uk/preprod-test-index.cfm";>
 
 
_______________________________________________________

*  Regards, 
                Richard Lovelock, 
                Senior Application Analyst.

Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG 

(     0870 906 7482
 
_______________________________________________________

 


=======================================================
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
=======================================================

This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to