http://onionworks.net/2006/data/personalization
logout () : void
The method “logout” logs a user out who was previously logged in with “login”.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:user="http://onionworks.net/2006/data/personalization" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
</xsl:stylesheet><xsl:if test="user:login('testuser', 'test')">
The user is now logged in.
</xsl:template><xsl:value-of select="user:logout()" />
</xsl:if>Logging out
The example shows how the testuser is logged in. The user is then logged out again and the session thus ended.