Clear Session (Whole Server)

document.cookie="SessionID=; path=/";

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.

JavaScript (Client)
Paul S Withers
March 19, 2012 5:26 PM

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 yetLogin first to comment...