|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm not to familiar with Session Management.. What I have done for my user login is that when a user logs onto the page.. It set a random token number in the MyToken Field in the database. This shows the user is logged in... When the user clicks on logout the Mytoken is set back to null... We all know not everyone will logout before closing the browser window... Is there a way that I can set the MyToken to null when someone closes the browser window?
bloodfest |
|
#2
|
|||
|
|||
|
No, but if you are using ColdFusion MX 7 you can have code execute in the OnSessionEnd event that clears out things from the database.
Note that the built-in <cflogin> tag automatically handles these things (like session ending on browser close) by using a session-only cookie that is deleted by the browser when the user shuts down all of their browser windows.
__________________
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Users Logout |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|