Toggle navigation menu
OpenNTF Snippets
Other Sites
OpenNTF
Collaboration Today
XPages.info
Anonymous
Login
Back
Clear Session (Whole Server)
You have to login first to use 'My Favorites' feature
So far, no one has added to favorites
Language
JavaScript (Client)
Tags
Author
Paul S Withers
Submitted on
March 19, 2012 at 4:26 PM
Rating
Downloads
232
Notes
SSJS allows you to clear sessionScope for the current NSF. I'm yet to find a way to clear sessionScope for all NSFs on a server with SSJS. But this CSJS code does clear all sessionScopes for all NSFs on the server.
NOTE: SessionID is stored differently in R9. This no longer works. Will update when I know more.
Select XSnippet to copy to Clipboard
Embed XSnippet
Report
document.cookie="SessionID=; path=/"; location.href="./?logout"
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the
Apache License Version 2.0
. See
Terms of Use
for full details.
No comments yet
Login first to comment...
Toggle navigation menu
Hosted by OpenNTF
Terms of Use
Privacy Policy
Contact OpenNTF
Follow OpenNTF
Follow Snippets