logout () : void

The method “logout” logs a user out who was previously logged in with “login”.

<xsl:stylesheet xmlns:xsl="" xmlns:user="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="user:login('testuser', 'test')"> The user is now logged in.
<xsl:value-of select="user:logout()" />
Logging out

The example shows how the testuser is logged in. The user is then logged out again and the session thus ended.