After authenticating and storing the encrypted session as a cookie, retrieving and decrypting the session is made easy via the session helper methods.
End a user’s session. The user’s browser should be redirected to this URL. Functionally similar to Get logout URL but extracts the session ID automatically from the session data.
Get log out URL
JavaScript