Thanks Steve,
I have tried this on my dev box and it makes no difference. In fact I
removed all cfcookie tags, and then CF set the jsessionid in a cookie. When
I refresh the page it creates 3 sets of cookies. Even Google analytics is
creating a new set of cookies on each request, which I find even wierder.
I have searched all the code and there is not one cfcookie tag in the files
now.
I put some logging in to my on session start and on app start, and here is
what I found:
-- empty on sessionstart()
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 GA cookies be
replicated and increased each request?
Is it me or is this super odd??
On Wed, Sep 15, 2010 at 5:49 PM, Steve Onnis <[email protected]> wrote:
> It seems to be creating a cookie for each page you visit
>
> try
>
> <cfcookie name="cfid" value="#Client.cfid#" domain="#server_name#" path="">
> <cfcookie name="cftoken" value="#Client.cftoken#" domain="#server_name#"
> path="">
>
> Also just put it in your onSessionStart() method. You only need to do it
> once
>
> ------------------------------
> *From:* Duncan [mailto:[email protected]]
> *Sent:* Wednesday, 15 September 2010 5:44 PM
> *To:* cfaussie
> *Subject:* [cfaussie] Strange multiples of cookies being set
>
> Hi Folks,
>
> I have a cookie related problem that I cannot get my head around.
>
> 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 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.
>
> In our application.cfc we have used this code in onRequestStart() to set
> UID <cfcookie name="UUID" value="#createUUID()#" expires="never">
>
> and we have these lines in there too.
>
> <cfcookie name="cfid" value="#Client.cfid#">
> <cfcookie name="cftoken" value="#Client.cftoken#">
>
> 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
> --->
>
> Can anyone help me find out why we are seeing so many cookies, when really
> I believe there should only be one CFID, CFTOKEN and UID cookie?
>
> Thanks!
>
> --
> Duncan Loxton
> [email protected]
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<cfaussie%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<cfaussie%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=en.
>
--
Duncan I Loxton
[email protected]
--
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.