@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.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 Scott<andr...@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

Reply via email to