I put a url variable on the cflocation, then set the cookie in the target page if the url var is present. Ugh! but it works.
-----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 10:33 AM To: CF-Talk Subject: RE: cfcookie I believe this is down to an old 'bug' in CF where you cannot set a cookie immediately before a CFLOCATION - there are ways around it I think but off hand I cannot remember - sure someone will chip in ;-) -----Original Message----- From: Daniel Kessler [mailto:[EMAIL PROTECTED] Sent: 04 August 2005 15:36 To: CF-Talk Subject: cfcookie I am using cookies to define whether a person is logged in. <cfif NOT isDefined('cookie.fsnep_login')> - no cookie - set return url - link to login page </cfif> click to go to the login, log in and it does: <cfset k = structDelete(cookie,'fsnep_login',true)> <cfcookie name="fsnep_login" value="#validate_user.login_id[1]#"> <cflocation url="#the_return_url#"> but when it returns to that url, the original code still fails and seems to think that you're not logged in. Oddly, if the return url is "../index.cfm" then it seems to work. Just not when it's coming from the other url. I tried refreshing the page to see if it was just not updating but that doesn't help. Please, any thoughts would help. -- Daniel Kessler Department of Public and Community Health University of Maryland Suite 2387 Valley Drive College Park, MD 20742-2611 301-405-2545 Phone www.phi.umd.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213736 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

