I was having some problems getting errors with the basic code referenced
earlier, only on some servers. Matt helped me create the code below, and
no problems so far (knock on wood).
Jake
<CFIF StructKeyExists (Session, "CFID") and StructKeyExists(Session,
"CFTOKEN")>
<CFLOCK timeout="30" name="#session.sessionID#">
<CFPARAM name="Session.#APPLICATION.adminCookieName#" default="">
<CFPARAM name="Session.Password2" default="">
</CFLOCK>
<CFIF IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
<CFCOOKIE name="CFID" value="#Session.CFID#">
<CFCOOKIE name="CFTOKEN" value="#Session.CFTOKEN#">
<CFSET cfid_local = Cookie.CFID>
<CFSET cftoken_local = Cookie.CFTOKEN>
</CFIF>
</CFIF>
Justin Cook wrote:
To preserve the session until the browser closes, put this in your
application.cfm
<cfset Cookie.cfid = SESSION.cfid>
<cfset Cookie.cftoken = SESSION.cftoken>
See the CF WACK pages 611-613
*/Sergio Santamaria <[EMAIL PROTECTED]>/* wrote:
How can you kill the session when the browser is closed, or the
user leaves your site?
Thanks
Sergio Santamaria
SISWORX
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
http://www.dfwcfug.org/form_MemberRegistration.cfm