Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...

alt

Daniel Nashed

How to remove OIDC and Domino session cookies to logout

Daniel Nashed – 27 November 2026 15:43:34

Filip asked in a comment for the previous topic about how to remove the session cookies.
Here is a very simple agent that you can just invoke in the right context.

I added it to my simple test database which dumps most CGI variables.


The agent just writes the two cookies in a way that they get removed by the browser.


I have a nicer version but that code would break in a blog post.


This code should help already.



-- Daniel



Option Public

Option Declare


Public Sub Initialize

       Dim szCookies( 1 ) As String

       Dim i As Integer


       szCookies( 0 ) = "__Secure-DomOidcpFailover"

       szCookies( 1 ) = "DomAuthSessId"


       Print "Content-Type: text/html; charset=utf-8"

       Print "Cache-Control: no-store"


       ' Secure is mandatory: browsers reject a __Secure- cookie change without it.

       For i = 0 To 1

               Print "Set-Cookie: " & szCookies( i ) & "=; Max-Age=0; " & _

                       "Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Secure; HttpOnly; SameSite=Lax"

       Next


       Print ""

       Print "<html><body><p>You have been signed out of this server.</p></body></html>"

End Sub



Links

    Archives


    • [HCL Domino]
    • [Domino on Linux]
    • [Nash!Com]
    • [Daniel Nashed]