>- see footer for list info -< In the request headers I have Set-Cookie CFID=5102;domain=.economist.com;path=/ CFTOKEN=65153854;domain=.economist.com;path=/
In the response headers I have Cookie __utma=206409351.1133440972.1199720225.1199720225.1201536922.2; GTSessionID938549107000027=bd49d9a49327437a970ea1df9c16d411; GTSessionID938928107000028=e2b1080aeb66421eb8c828e44d4dd6ed; EID=RM1; GTSessionID932049107000016=19645b580bf84616b26c266bbd5436d3; CFTOKEN=65153854; CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Fhomepage%2Ecfm; CFID=5102; VISITOR=2008010710364602027; popup=homepage%3Dseen%3B; GEOGRAPHIC=UK; COOKIEFLAG=Y; __utmz=206409351.1199720225.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none ); anonId=f9b104b1-ba09-410c-a84f-e3030e15a8b1; CFMAGIC=40518%3A92f4618a8957fab5%2D54E59010%2DB27C%2DBB00%2D01354C8190ECC805 ; [EMAIL PROTECTED]; CFID=5102; CFTOKEN=65153854; sessionCount=9; LtpaToken=AAECAzQ3QTk3MDNENDdBOUU1NkRDTj1ydXNzbWljaGFlbHMvT1U9SVNEL09VPUdyb3 VwL09VPWxvbmRvbi9PVT11ay9PPUVDT05PTUlTVIWTEvSeJw56rd1WfqMN8X/2GoMY; at=u=4001362&a=iamruss&[EMAIL PROTECTED]&t=238084&h=3c99cbd7c643a6b23394 1b3b7e80f602; USER=russ%40michaels%2Eme%2Euk%23325%2E%2FOJ%3FZ%5DH6%5E%5FA%29Q%25%3C%3E0FD M%22%23P%20%20%0A; CUSTOMER=u%3D4001362%26a%3DRuss%20Michaels%26e%3Druss%40michaels%2Eme%2Euk%2 6t%3D105694%26h%3D21428e8fd825a355df35f4cf80249711%26r%3DY; REMEMBERME=1; AUTH=1; UP=%2Cjtitle%3D%2Cgender%3Dm%2C So no expiry date here. But oddly it is only my "at" value is expiring, everything else stays intact. Russ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Wild Sent: 07 February 2008 13:28 To: Coldfusion Development Subject: Re: [CF-Dev] cookie expiry >- see footer for list info -< check the cookie that's sent after running the page - what's the actual value of the expiry date that is being received? firefox web dev toolbar is great for seeing the response headers for a page - check what's being sent from those and check the actual cookie with JS. Any difference to what you're expecting to be sent/actually see? On Feb 7, 2008 1:22 PM, Snake <[EMAIL PROTECTED]> wrote: > >- 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 > -< > _______________________________________________ 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 -<
