|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Is there any way by which I can end the session the moment users closes the browser.
I am using session management to track if user is logged on or not... It works fine... but what i see.... even after closing the browser window i open a new browser window try to visit any page inside the folder I can do so without going through the login procedure... I tried to track the problem and found that SESSION.started is still showing true even after closing the browser. I will be grateful to get any help... thanx |
|
#2
|
|||
|
|||
|
You can't time out the session on browser close, but you can time out the cookie that is used to track the user:
<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")> <cfset Variables.cfid_local = Cookie.CFID> <cfset Variables.cftoken_local = Cookie.CFTOKEN> <cfcookie name="CFID" value="#Variables.cfid_local#"> <cfcookie name="CFTOKEN" value="#Variables.cftoken_local#"> </cfif> This creates a cookie that expires when the user closes their browser windows (they have to close all of their windows, that's a browser thing not a CF thing).
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
Quote:
Thanks... kiteless.. I hope this will do... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > ending session |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|