Title:
Bug 83362:(Watson Migration Closure)Could we have a function similar to ApplicationStop() for the current session request called SessionStop()
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): David Boyer / David Boyer (MisterDai)
Created: 06/16/2010
Components: Core Runtime, Session Management
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Could we have a function similar to ApplicationStop() for the current session request called SessionStop(). It's currently possible for CF sessions (not j2eeSessions) using the underlying coldfusion.runtime.SessionTracker object and it's cleanUp() function. The behaviour appears to be eactly the same as the ApplicationStop() provides for the application scope.This would certainly make life easier when it comes to ending a user session. Especially when they are logging out and the session doesn't need to hang around for another 30 minutes (or whatever the inactivity limit is) until it expires and is garbage collected.Thanks :)
Method:
<cfset sid = session.cfid & '_' & session.cftoken /><cfset CreateObject('java', 'coldfusion.runtime.SessionTracker').cleanUp(application.applicationName, sid) />
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041663
External Customer Info:
External Company:
External Customer Name: David Boyer
External Customer Email: 37221ACB4B0AA9E3992015A9
External Test Config: 06/16/2010
Attachments:
Comments: