Umbraco/Reference/umbraco.library/Session

From Wikibooks, open books for an open world
< Umbraco‎ | Reference‎ | umbraco.library
Jump to navigation Jump to search

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