Tuesday, January 19, 2010

Working with Session inside XSLT

Here we would be seeing two XSLT statements - firstly on how to set a value in session and secondly how to retrieve that session value:

<!-- Setting the Session Value -->
<xsl:value-of select="sc:SetSession('sessionval','2451')"/>

<!-- Retriving the Session Value -->
<xsl:value-of select="sc:Session('sessionval')"/>
The output can be observed on the front-end as: 2451

No comments:

Post a Comment