RE: cfcookie and cflocation
Try CFCOOKIE NAME=someName VALUE=someValue CFHEADER NAME=Refresh VALUE=0; URL=someURL.cfm Regards, Mark Stephenson New Media Director Evolution Internet T: 0870 757 1631 F: 0870 757 1632 W: www.evolutioninternet.co.uk E: [EMAIL PROTECTED] WARNING: --- The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind. AVIS IMPORTANT: --- Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 00:33 To: CF-Talk Subject: RE: cfcookie and cflocation OK I know that you can't set a cookie and then use CFLOCATION, but I've heard there is a workaround using headers. Can anyone shed some light? BTW this is on CF 5 (yes I know CFMX doesn't have this bug/feature..hehe) You can use the CFHEADER tag to set cookies and change locations. In this case, you might as well set the cookie with CFCOOKIE, then change the location with CFHEADER: cfcookie ... cfheader name=Location value=urlpath/to/file.cfm cfheader statuscode=302 statustext=Document moved Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 : dream :: design :: develop : MXDC 02 :: Join us at this all day conference for designers developers to learn tips, tricks, best practices and more for the entire Macromedia MX suite. September 28, 2002 :: http://www.mxdc02.com/ (Register today, seats are limited!) :: __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: cfcookie and cflocation
There is also a cf tag for this.. whether it works under CFMX, I do not know. At 03:56 PM 9/25/2002 -0700, you wrote: Hey All, OK I know that you can't set a cookie and then use CFLOCATION, but I've heard there is a workaround using headers. Can anyone shed some light? BTW this is on CF 5 (yes I know CFMX doesn't have this bug/feature..hehe) Thanks in advance Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfcookie and cflocation
OK I know that you can't set a cookie and then use CFLOCATION, but I've heard there is a workaround using headers. Can anyone shed some light? BTW this is on CF 5 (yes I know CFMX doesn't have this bug/feature..hehe) You can use the CFHEADER tag to set cookies and change locations. In this case, you might as well set the cookie with CFCOOKIE, then change the location with CFHEADER: cfcookie ... cfheader name=Location value=urlpath/to/file.cfm cfheader statuscode=302 statustext=Document moved Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 : dream :: design :: develop : MXDC 02 :: Join us at this all day conference for designers developers to learn tips, tricks, best practices and more for the entire Macromedia MX suite. September 28, 2002 :: http://www.mxdc02.com/ (Register today, seats are limited!) :: __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CfCookie and CFLocation
Hi Everyone, I have a site that i need to password protect. Basically If the user has logged in correctly, they are redirected to the content site. Before redirection, a cookie is set called 'logged in' such as: CFCookie name="loggedin" value="true" cflocation url="test.cfm" addtoken="yes" Currently the Cookie is not being passed. The pages that the user is sent to will check to see if the cookie has been set. if it has not, they will be redirected to the login page. The server is set up in such a way that session and client variables are not enabled (not my idea) so this is my only option if you have any ideas on how to pass info between pages like this, or even something else in Cold Fusion that might work, please post it CFCOOKIE and CFLOCATION can't both be used within the same page. If you want to change the location of a page in which you return a cookie to the browser, you can either use JavaScript or a META refresh tag. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.