Jump to content

Umbraco/Reference/umbraco.library/Session

From Wikibooks, open books for an open world

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'. -->