Umbraco/Reference/umbraco.library/Session

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Purpose[edit | edit source]

Retrieve a value stored in a session variable.

Arguments[edit | edit source]

Session(String key)

key: the name of the session variable to retrieve.

Example XSLT Usage[edit | edit source]

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

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