How can I kill the Session [ <CFSET TMP = StructClear(Session)> ] when the user closes the navigator?
Actually, I don't wanna force the user to click LOGOUT.
You didn't get my point!
Suppose I set the session timeout value to 20 minutes, if the user closes the window after 10 minutes of his login and a new user requests the url on the same PC after 5 minutes of the last user logout process, the new user will be taken directly to the account of the first user without enterin' user ID or Password.
I hope you got my point now. This idea is implemented in hotmail.com ......... I need the solution guys.
HTTP is a stateless protocol so ColdFusion requires CFID and CFTOKEN to recognise a user, normally these values are stored in permanant cookies however the above code will force ColdFusion to use temporary cookies that are lost when the borwser is closed.
End of problem although technicnally the session is still open the new browser instance is recognised as a different user.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.