Umbraco/Reference/umbraco.library/Session

Purpose

edit

Retrieve a value stored in a session variable.

Arguments

edit

Session(String key)

key: the name of the session variable to retrieve.

Example XSLT Usage

edit

<xsl:variable name="sessionVariable" select="umbraco.library:Session('sessionVariable')" />

<!-- $sessionVariable now refers to the value stored in the session variable called 'sessionVariable'. -->