Hi

Probably you've set setclientcookies to yes previously, and they are 
still
being used.  setclientcookies does not tell CF not to use cookies if 
they
exist, simply not to set them.

Put this code into your application cfm to kill the cookies when you 
close
the browser and then try the same thing again

<cfif IsDefined( "Cookie.CFID" ) AND IsDefined( "Cookie.CFTOKEN" )>
  <cfset localCFID = Cookie.CFID>
  <cfset localCFTOKEN = Cookie.CFTOKEN>
  <cfcookie name="CFID" value="#localCFID#">
  <cfcookie name="CFTOKEN" value="#localCFTOKEN#">
</cfif>

hth 

mark

Mark Smyth 
Developer 
SUeBS 
00 44 1865 880800 
[EMAIL PROTECTED] 
www.systemsunion.net


-----Original Message-----
From: Bimal Shah [mailto:[EMAIL PROTECTED]]
Sent: 25 February 2002 12:18
To: CF-Talk
Subject: session without cookies - why/how does this work?


Hello

I have an Application.cfm page with the following:

<cfapplication name="sessiontest" sessionmanagement="Yes"
setclientcookies="No">

And two cf pages:

page1.cfm

<cfset session.name = "tom.smith">

page2.cfm

<cfoutput>#session.name#</cfoutput>

In the browser, I type in http://mywebserver/page1.cfm and
then type in http://mywebserver/page2.cfm and it displays
"tom.smith".

Why/how does this work when I have set "setclientcookies" to
"No" and I am not passing CFID,CFTOKEN (since I am typing in
the URLS directly - no url or form variables being sent)?

Bimal Shah
Senior Web developer | Venus Internet Ltd | www.venus.co.uk
e: [EMAIL PROTECTED] | t: 0207 240 5858 | f: 0207 240 5859

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to