>- see footer for list info -< I solved that one, I had expiry in my code twice. But it still creates a session cookie that is deleted when I close the browser instead of using the expiry date.
Russ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Wild Sent: 07 February 2008 13:12 To: Coldfusion Development Subject: Re: [CF-Dev] cookie expiry >- see footer for list info -< works for me both without and without the expiry. Proved it using firebug and <script> console.log(document.cookie); </script> must be something else that's not setting it when you're not using the expiry. Is the header being reset, or is the domain changed? On Feb 7, 2008 12:49 PM, Snake <[EMAIL PROTECTED]> wrote: > >- see footer for list info -< > Ok this is doing my head in now, so time to post J > > > > I am trying to set a cookie with the following code, I cannot use cfcookie > as it needs to be lower case. > > > > <cfset variables.expiry = "#dateformat(dateAdd('yyyy',10,now()), "ddd, > dd-mmm-yyyy")# #timeformat(now(), "hh:mm:ss GMT")#"> > > > > <cfheader name="Set-Cookie" > value='at=#variables.at#;domain=economist.com;path=/;expires=#expiry#'> > > > > If I do not set the expiry then it works, if I do set the expiry then the > cookie is not created. I have checked and re-checked that the format of > the > expiry is correct. Anyone else got any idea why it doesn't work ? > > > > > > > > -- > > Russ Michaels > > Certified ColdFusion Professional > > My Blog: www.russ.michaels.me.uk > > > > Commerical ColdFusion & BlueDragon Hosting: www.cfmxhosting.co.uk > > FREE CFML Developer hosting : www.cfdeveloper.co.uk > > > > > > > > -- > > Russ > > > > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > -< > _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
