Re: duplication of cookies on each request
I'd be interested to know. I've been using the short method for years and never had a problem. However I'd love to know if the longer version is actually more stable. No, there's no problem with the shorter method. Of course, nowadays you should probably just use JSESSIONID instead. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337300 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
I have a cookie dupication problem that I cannot get my head around. This is a duplication of my thread on cf-aussie, so apologies to those who are seeing this twice. See this page for example. http://www.biowishtechnologies.com/au/information/our-company1/senior-management-team/lorenzo-gella/ If you click through a few pages on this site, then view the cookies that have been set for it you will see they have been multiplied a lot of times, I am guessing unnecessarily. I believe these cookies should be set only once in the root of the site. This happens for the CF and Google Analytics cookies. This issue appears to occur on CF9 in development and in CF8 on live. I have tried different combinations of cfcookie and settings but nothing seems to stop it happening. I believe that this issue is causes Internet Explorer users to receive a blank page every now and again because the limit on the number of cookies is being reached. In our application.cfc we have used this code in onRequestStart() to set UID, and cf vars cfcookie name=UUID value=#createUUID()# expires=never cfcookie name=cfid value=#Client.cfid# cfcookie name=cftoken value=#Client.cftoken# I have tried to use domain=www.biowishtechnologies.com path=/ but it makes no difference. It's doing exactly what you told it to do - it's setting cookies on each request. If you put CFCOOKIE tags in onRequestStart, they will run for every request. Move the CFCOOKIE tags to onSessionStart, and disable the automatic setting of cookies in your application properties, or just use JSESSIONID. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337301 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
I thought this was the standard trick: !--- This expires the session once the browser window is closed. --- cfif IsDefined(cookie.cfid) AND IsDefined(cookie.cftoken) cfcookie name=cfid value=cookie.cfid cfcookie name=cftoken value=cookie.cftoken /cfif The other way is just an extra step. On Thu, Sep 16, 2010 at 9:50 PM, Kym Kovan dev-li...@mbcomms.net.au wrote: On 17/09/2010 10:49, Michael Grant wrote: Am I just tired or is this a little redundant? Set a local var equal to the cookie value, then overwrite the cookie value with the local var value? Surely I'm just reading this wrong. Its a standard trick to change the expires attribute for the cookie so it expires immediately. Close browser, open browser and it becomes a new session rather than using the still-existing cookies from before. HTH Kym K On Thu, Sep 16, 2010 at 8:35 PM, Andrew Scottandr...@andyscott.id.au wrote: You should be doing something like this. cfif isDefined(Cookie.CFID) AND isDefined(Cookie.CFTOKEN) cfset cfId_local = Cookie.CFID cfset cftoken_local = Cookie.CFTOKEN cfcookie name=CFID value=#cfId_local# cfcookie name=CFTOKEN value=#cftoken_local# /cfif -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337171 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
On 17/09/2010 8:27 PM, Michael Grant wrote: I thought this was the standard trick: !--- This expires the session once the browser window is closed. --- cfif IsDefined(cookie.cfid) AND IsDefined(cookie.cftoken) cfcookie name=cfid value=cookie.cfid cfcookie name=cftoken value=cookie.cftoken /cfif The other way is just an extra step. I can't recollect but there was some strange context where that simpler version broke. -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337172 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
On 17/09/2010 1:17 PM, Duncan wrote: @Kym, creating new cookies on starting a new session I would understand, but take a look at my logging, each request is within the current session, CF is not calling onSessionStart on each page refresh. We still end up with duplicte cookies, all with values accumulated from the previous request. It is most strange. My immediate thought was that the domain name was wrong so it was starting a new session each time but that is not the case. Have you tried using the domain attribute as an experiment to see if that makes a difference? Using the higher domain, eg domain.name rather than www.domain.name -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337173 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
I'd be interested to know. I've been using the short method for years and never had a problem. However I'd love to know if the longer version is actually more stable. Stable Short On Fri, Sep 17, 2010 at 7:18 AM, Kym Kovan dev-li...@mbcomms.net.au wrote: On 17/09/2010 8:27 PM, Michael Grant wrote: I thought this was the standard trick: !--- This expires the session once the browser window is closed. --- cfif IsDefined(cookie.cfid) AND IsDefined(cookie.cftoken) cfcookie name=cfid value=cookie.cfid cfcookie name=cftoken value=cookie.cftoken /cfif The other way is just an extra step. I can't recollect but there was some strange context where that simpler version broke. -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337178 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
duplication of cookies on each request
Hi Folks, I have a cookie dupication problem that I cannot get my head around. This is a duplication of my thread on cf-aussie, so apologies to those who are seeing this twice. See this page for example. http://www.biowishtechnologies.com/au/information/our-company1/senior-management-team/lorenzo-gella/ If you click through a few pages on this site, then view the cookies that have been set for it you will see they have been multiplied a lot of times, I am guessing unnecessarily. I believe these cookies should be set only once in the root of the site. This happens for the CF and Google Analytics cookies. This issue appears to occur on CF9 in development and in CF8 on live. I have tried different combinations of cfcookie and settings but nothing seems to stop it happening. I believe that this issue is causes Internet Explorer users to receive a blank page every now and again because the limit on the number of cookies is being reached. In our application.cfc we have used this code in onRequestStart() to set UID, and cf vars cfcookie name=UUID value=#createUUID()# expires=never cfcookie name=cfid value=#Client.cfid# cfcookie name=cftoken value=#Client.cftoken# I have tried to use domain=www.biowishtechnologies.com path=/ but it makes no difference. The application is set out like this: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(0,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- We have also removed all cfcookie tags, and then CF set the jsessionid in a cookie. This has no change. We also moved the cookie tags into the onSessionStart, but again no difference. I put some logging in to my on session start and on app start, and here is what I found: application set as follows: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(30,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- creates one jsessionid cookie 4 x GA cookies _utma _utmb _utmc _utmz (all in lowercase) go to a sub page get an extra 2 x jsessionid cookies, 2 more sets of GA cookies but this time the names are in uppercase go to a third page I get 3 more jsessionid cookies (now a total of 6, and now have a set of 8 utma cookies. The logging suggests that the session stays, and that the onsessionstart is only called once. Information,jrpp-11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app new session Information,jrpp-11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp-11,09/16/10,13:07:35,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp-11,09/16/10,13:08:29,LOCAL.BIOWISH.LOCAL,running app on req start -- The exact same thing is happening on live with the GA cookies too. This leads me to think its not about the CF code. Why would the Google Analytics cookies be replicated and increased each request? Thanks! -- Duncan I Loxton duncan.lox...@gmail.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337158 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: duplication of cookies on each request
You should be doing something like this. cfif isDefined(Cookie.CFID) AND isDefined(Cookie.CFTOKEN) cfset cfId_local = Cookie.CFID cfset cftoken_local = Cookie.CFTOKEN cfcookie name=CFID value=#cfId_local# cfcookie name=CFTOKEN value=#cftoken_local# /cfif Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Duncan [mailto:duncan.lox...@gmail.com] Sent: Friday, 17 September 2010 8:29 AM To: cf-talk Subject: duplication of cookies on each request Hi Folks, I have a cookie dupication problem that I cannot get my head around. This is a duplication of my thread on cf-aussie, so apologies to those who are seeing this twice. See this page for example. http://www.biowishtechnologies.com/au/information/our- company1/senior-management-team/lorenzo-gella/ If you click through a few pages on this site, then view the cookies that have been set for it you will see they have been multiplied a lot of times, I am guessing unnecessarily. I believe these cookies should be set only once in the root of the site. This happens for the CF and Google Analytics cookies. This issue appears to occur on CF9 in development and in CF8 on live. I have tried different combinations of cfcookie and settings but nothing seems to stop it happening. I believe that this issue is causes Internet Explorer users to receive a blank page every now and again because the limit on the number of cookies is being reached. In our application.cfc we have used this code in onRequestStart() to set UID, and cf vars cfcookie name=UUID value=#createUUID()# expires=never cfcookie name=cfid value=#Client.cfid# cfcookie name=cftoken value=#Client.cftoken# I have tried to use domain=www.biowishtechnologies.com path=/ but it makes no difference. The application is set out like this: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(0,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- We have also removed all cfcookie tags, and then CF set the jsessionid in a cookie. This has no change. We also moved the cookie tags into the onSessionStart, but again no difference. I put some logging in to my on session start and on app start, and here is what I found: application set as follows: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(30,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- creates one jsessionid cookie 4 x GA cookies _utma _utmb _utmc _utmz (all in lowercase) go to a sub page get an extra 2 x jsessionid cookies, 2 more sets of GA cookies but this time the names are in uppercase go to a third page I get 3 more jsessionid cookies (now a total of 6, and now have a set of 8 utma cookies. The logging suggests that the session stays, and that the onsessionstart is only called once. Information,jrpp- 11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app new session Information,jrpp- 11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp- 11,09/16/10,13:07:35,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp- 11,09/16/10,13:08:29,LOCAL.BIOWISH.LOCAL,running app on req start -- The exact same thing is happening on live with the GA cookies too. This leads me to think its not about the CF code. Why would the Google Analytics cookies be replicated and increased each request? Thanks! -- Duncan I Loxton duncan.lox...@gmail.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337162 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
OT: You should really pre-load those mouse over images for the tabs. WHen I mouse over I get a big ole' whitespace while the image loads. On Thu, Sep 16, 2010 at 6:29 PM, Duncan duncan.lox...@gmail.com wrote: Hi Folks, I have a cookie dupication problem that I cannot get my head around. This is a duplication of my thread on cf-aussie, so apologies to those who are seeing this twice. See this page for example. http://www.biowishtechnologies.com/au/information/our-company1/senior-management-team/lorenzo-gella/ If you click through a few pages on this site, then view the cookies that have been set for it you will see they have been multiplied a lot of times, I am guessing unnecessarily. I believe these cookies should be set only once in the root of the site. This happens for the CF and Google Analytics cookies. This issue appears to occur on CF9 in development and in CF8 on live. I have tried different combinations of cfcookie and settings but nothing seems to stop it happening. I believe that this issue is causes Internet Explorer users to receive a blank page every now and again because the limit on the number of cookies is being reached. In our application.cfc we have used this code in onRequestStart() to set UID, and cf vars cfcookie name=UUID value=#createUUID()# expires=never cfcookie name=cfid value=#Client.cfid# cfcookie name=cftoken value=#Client.cftoken# I have tried to use domain=www.biowishtechnologies.com path=/ but it makes no difference. The application is set out like this: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(0,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- We have also removed all cfcookie tags, and then CF set the jsessionid in a cookie. This has no change. We also moved the cookie tags into the onSessionStart, but again no difference. I put some logging in to my on session start and on app start, and here is what I found: application set as follows: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(30,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- creates one jsessionid cookie 4 x GA cookies _utma _utmb _utmc _utmz (all in lowercase) go to a sub page get an extra 2 x jsessionid cookies, 2 more sets of GA cookies but this time the names are in uppercase go to a third page I get 3 more jsessionid cookies (now a total of 6, and now have a set of 8 utma cookies. The logging suggests that the session stays, and that the onsessionstart is only called once. Information,jrpp-11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app new session Information,jrpp-11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp-11,09/16/10,13:07:35,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp-11,09/16/10,13:08:29,LOCAL.BIOWISH.LOCAL,running app on req start -- The exact same thing is happening on live with the GA cookies too. This leads me to think its not about the CF code. Why would the Google Analytics cookies be replicated and increased each request? Thanks! -- Duncan I Loxton duncan.lox...@gmail.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337163 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
Am I just tired or is this a little redundant? Set a local var equal to the cookie value, then overwrite the cookie value with the local var value? Surely I'm just reading this wrong. On Thu, Sep 16, 2010 at 8:35 PM, Andrew Scott andr...@andyscott.id.auwrote: You should be doing something like this. cfif isDefined(Cookie.CFID) AND isDefined(Cookie.CFTOKEN) cfset cfId_local = Cookie.CFID cfset cftoken_local = Cookie.CFTOKEN cfcookie name=CFID value=#cfId_local# cfcookie name=CFTOKEN value=#cftoken_local# /cfif Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Duncan [mailto:duncan.lox...@gmail.com] Sent: Friday, 17 September 2010 8:29 AM To: cf-talk Subject: duplication of cookies on each request Hi Folks, I have a cookie dupication problem that I cannot get my head around. This is a duplication of my thread on cf-aussie, so apologies to those who are seeing this twice. See this page for example. http://www.biowishtechnologies.com/au/information/our- company1/senior-management-team/lorenzo-gella/ If you click through a few pages on this site, then view the cookies that have been set for it you will see they have been multiplied a lot of times, I am guessing unnecessarily. I believe these cookies should be set only once in the root of the site. This happens for the CF and Google Analytics cookies. This issue appears to occur on CF9 in development and in CF8 on live. I have tried different combinations of cfcookie and settings but nothing seems to stop it happening. I believe that this issue is causes Internet Explorer users to receive a blank page every now and again because the limit on the number of cookies is being reached. In our application.cfc we have used this code in onRequestStart() to set UID, and cf vars cfcookie name=UUID value=#createUUID()# expires=never cfcookie name=cfid value=#Client.cfid# cfcookie name=cftoken value=#Client.cftoken# I have tried to use domain=www.biowishtechnologies.com path=/ but it makes no difference. The application is set out like this: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(0,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- We have also removed all cfcookie tags, and then CF set the jsessionid in a cookie. This has no change. We also moved the cookie tags into the onSessionStart, but again no difference. I put some logging in to my on session start and on app start, and here is what I found: application set as follows: cfset this.sessionManagement = true cfset this.clientManagement = true cfset this.setClientCookies = false cfset this.sessionTimeout = CreateTimeSpan(30,0,30,0)!--- 30 minutes --- cfset this.applicationTimeout = CreateTimeSpan(31,0,0,0)!--- 31 days --- creates one jsessionid cookie 4 x GA cookies _utma _utmb _utmc _utmz (all in lowercase) go to a sub page get an extra 2 x jsessionid cookies, 2 more sets of GA cookies but this time the names are in uppercase go to a third page I get 3 more jsessionid cookies (now a total of 6, and now have a set of 8 utma cookies. The logging suggests that the session stays, and that the onsessionstart is only called once. Information,jrpp- 11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app new session Information,jrpp- 11,09/16/10,13:06:45,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp- 11,09/16/10,13:07:35,LOCAL.BIOWISH.LOCAL,running app on req start Information,jrpp- 11,09/16/10,13:08:29,LOCAL.BIOWISH.LOCAL,running app on req start -- The exact same thing is happening on live with the GA cookies too. This leads me to think its not about the CF code. Why would the Google Analytics cookies be replicated and increased each request? Thanks! -- Duncan I Loxton duncan.lox...@gmail.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337164 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
On 17/09/2010 10:49, Michael Grant wrote: Am I just tired or is this a little redundant? Set a local var equal to the cookie value, then overwrite the cookie value with the local var value? Surely I'm just reading this wrong. Its a standard trick to change the expires attribute for the cookie so it expires immediately. Close browser, open browser and it becomes a new session rather than using the still-existing cookies from before. HTH Kym K On Thu, Sep 16, 2010 at 8:35 PM, Andrew Scottandr...@andyscott.id.auwrote: You should be doing something like this. cfif isDefined(Cookie.CFID) AND isDefined(Cookie.CFTOKEN) cfset cfId_local = Cookie.CFID cfset cftoken_local = Cookie.CFTOKEN cfcookie name=CFID value=#cfId_local# cfcookie name=CFTOKEN value=#cftoken_local# /cfif -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337166 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: duplication of cookies on each request
@Andrew I have tried this with NO cfcookie tags in the code, and CF still insists on setting them each request. Wierder stillis that the Google Analytics code is doing it too, and I have NO control over it. @Michael - yes we have tried setting the cookie again, but using cfcookie appears to force a new cookie in the browserm it doesnt overwrite the existing cookie, its like isDefined() returns false all the time Again doesnt explain why the GA cookies are doing it @Kym, creating new cookies on starting a new session I would understand, but take a look at my logging, each request is within the current session, CF is not calling onSessionStart on each page refresh. We still end up with duplicte cookies, all with values accumulated from the previous request. On Fri, Sep 17, 2010 at 11:50 AM, Kym Kovan dev-li...@mbcomms.net.auwrote: On 17/09/2010 10:49, Michael Grant wrote: Am I just tired or is this a little redundant? Set a local var equal to the cookie value, then overwrite the cookie value with the local var value? Surely I'm just reading this wrong. Its a standard trick to change the expires attribute for the cookie so it expires immediately. Close browser, open browser and it becomes a new session rather than using the still-existing cookies from before. HTH Kym K On Thu, Sep 16, 2010 at 8:35 PM, Andrew Scottandr...@andyscott.id.au wrote: You should be doing something like this. cfif isDefined(Cookie.CFID) AND isDefined(Cookie.CFTOKEN) cfset cfId_local = Cookie.CFID cfset cftoken_local = Cookie.CFTOKEN cfcookie name=CFID value=#cfId_local# cfcookie name=CFTOKEN value=#cftoken_local# /cfif -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337168 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm