Problem solved. The subdomain we were using contained an underscore.
test_site.ourdomain.com.au Of course I never thought to include that in my emails to the list! The underscore is not a valid domain name character. We switched to using a hyphen and suddenly our cookies (and sessions) started working. Regards Kevan -----Original Message----- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Friday, 2 February 2007 1:23 PM To: CF-Talk Subject: Re: Session not being maintained http://www.coldfusionmuse.com/index.cfm/2006/7/28/sessions.and.subdomains Hope this helps Doug B. ----- Original Message ----- From: "Kevan Stannard" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Thursday, February 01, 2007 6:58 PM Subject: RE: Session not being maintained > One additional bit of information: > > I am accessing this site via a subdomain: > http://testsite.ourdomain.com.au/test/ > > Internally, I can access the same code via a server's name: > http://testsite/test/ > > This second option IS retaining the session. > > > > -----Original Message----- > From: James Holmes [mailto:[EMAIL PROTECTED] > Sent: Friday, 2 February 2007 12:27 PM > To: CF-Talk > Subject: Re: Session not being maintained > > OK, so you aren't using J2EE session variables, which means that > persistent cookies are being set (rather than session-based ones); > these are often treated more harshly by cookie blockers. Check again > for the cookie settings in IE or any toolbars/helpers loaded into IE, > as this is the problem. > > On 2/2/07, Kevan Stannard <[EMAIL PROTECTED]> wrote: > > I have tested on a number of machines and all are set to allow cookies. > > > > I have tested in IE7 and IE6 with the same behaviour, but Firefox 2.0 > seems > > to be fine. > > > > I have also tries changing the privacy setting within IE to allow all > > cookies for our test internal server, but the problem continues. > > > > Yes, your sample code does append the cfide and cftoken variables, and the > > session is then retained when they are present. > > > > Kevan > > > > -----Original Message----- > > From: AJ Mercer [mailto:[EMAIL PROTECTED] > > Sent: Friday, 2 February 2007 12:06 PM > > To: CF-Talk > > Subject: Re: Session not being maintained > > > > does you browser accept cookies? > > > > try this for your refresh link > > <a href="#urlSessionFormat('index.cfm')#">Refresh</a> > > > > ColdFusion works out if it needs to append CFID and CFTOKEN to the URL - > > like if cookies are not enabled. > > > > > > On 2/2/07, Kevan Stannard <[EMAIL PROTECTED]> wrote: > > > > > > Hi > > > > > > > > > > > > I have an application on our server that is not being maintained across > > > pages. I have set up a test directory with only two files: > > > > > > > > > > > > Application.cfm > > > > > > -------------- > > > > > > > > > > > > <cfapplication > > > > > > name="test" > > > > > > clientmanagement="Yes" > > > > > > sessionmanagement="Yes" > > > > > > sessiontimeout="#createTimeSpan(0,0,30,0)#" > > > > > > applicationtimeout="#createTimeSpan(1,0,0,0)#"> > > > > > > > > > > > > > > > > > > index.cfm > > > > > > -------------- > > > > > > > > > > > > <p>BEFORE:</p> > > > > > > <cfdump var="#session#"> > > > > > > > > > > > > <cfset session.x = now()> > > > > > > > > > > > > <p>AFTER:</p> > > > > > > <cfdump var="#session#"> > > > > > > > > > > > > <p> > > > > > > <a href="index.cfm">Refresh</a> > > > > > > </p> > > > > > > > > > > > > > > > > > > When I execute index.cfm, this is the output: > > > > > > > > > > > > BEFORE: > > > > > > > > > > > > struct > > > > > > cfid 3660 > > > > > > cftoken 18546740 > > > > > > sessionid TEST_3660_18546740 > > > > > > urltoken CFID=3660&CFTOKEN=18546740 > > > > > > > > > > > > AFTER: > > > > > > > > > > > > struct > > > > > > cfid 3660 > > > > > > cftoken 18546740 > > > > > > sessionid TEST_3660_18546740 > > > > > > urltoken CFID=3660&CFTOKEN=18546740 > > > > > > x {ts '2007-02-02 11:55:57'} > > > > > > > > > > > > Refresh > > > > > > > > > > > > > > > > > > > > > > > > When I refresh the page the cfide, cftoken etc are changed and the > > > variable > > > session.x is gone > > > > > > > > > > > > * I am running IE7 > > > > > > * This is using http:// > > > > > > * This works fine within Firefox > > > > > > > > > > > > Any suggestions? > > > > > > > > > > > > Kevan > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268396 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4