troubleshooting Question

reset session vars.

Avatar of florisb
florisb asked on
Web Servers
5 Comments1 Solution287 ViewsLast Modified:

I'm using the code inserted below, somehow it looks like it works only most of the times. Can somebody:
- tell me what the code exactly does.
- whether the code is correct / complete.

What I want is that when a browser is closed (or openened again, after closing), all session variables will be reset.


<!--- session variables are enabled and persist for 30-minute timeout period
If you close your browser before 30-minute is over and open it again you can
access the site. To avoid this problem just convert CFIDE and CFTOKEN variables in to
browser session cookies - when the browser is closed
they expire --->
<cfif IsDefined("Cookie.CFID")>
     <cflock scope="session" timeout= "30" type="EXCLUSIVE">
          <cfcookie name="CFID" value="#session.CFID#">

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros