http://onionworks.net/2004/renderengine/web

getCookie (name : string) : string

The method “getCookie” returns the content of a previously set cookie. If the cookie does not exist, the character string is empty.

<xsl:variable name="value">username</xsl:variable>
<xsl:value-of select="web:setCookie('cookiename', $value)" />
<xsl:value-of select="web:getCookie('cookiename')" />

The result of the example is: username