< Umbraco < Reference < umbraco.library

Purpose

Retrieve a value stored in a session variable.

Arguments

Session(String key)

key: the name of the session variable to retrieve.

Example XSLT Usage

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

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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.