OK, finally figured it out through trial and error. Did not find (complete) 
documentation that explained how to do this. Set this in the Application.cfc 
(beneath the <cfcomponent> tag) <cfset THIS.sessioncookie.timeout = "-1" > and 
this will cause the cfid & cftoken cookies "Expires" attribute to be set to 
"When I close my browser". Note: if you are using a shared server & "Disable 
updating Coldfusion internal cookie using Coldfusion tags/functions" is 
checked, you can override it by putting <cfset 
THIS.sessioncookie.disableupdate=false> in the Application.cfc, which gives 
control back to you, otherwise cfid & cftoke will expire at whatever interval 
is set in CF Admin. In OnSessionStart, you can set the cookies like this: 
<cfcookie name="cfid" value="#SESSION.CFID#"> <cfcookie name="cftoken" 
value="#SESSION.CFToken#"> or like this: <cfset Cookie.cfid = SESSION.CFID> 
<cfset Cookie.cftoken = SESSION.CFToken>, just make sure you don’t use the 
expires attribute when setting them.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351847
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to