Quickly terminate a Domino Session

I am writing a session authentication tool which checks that your session is valid before trying to submit a document to the server as we have users who lose data quite frequently (a combination of short session times, SSL and their inability to learn!). Rather than extend the session timeouts we check to see if the session is valid by trying to open a page before submitting the form to the server. But to test this I need to expire my session quickly and often so enter a one line scriptlet:

javascript:document.cookie=”DomAuthSessId=; expires=Saturday, 01-Apr-1980 08:00:00 GMT ; path=/”;alert(“Session has been terminated.”);

You just save this as a favourite (or bookmark in Mozilla) and click it when you want to terminate your session.

Share