Monday, December 26, 2005

Working with Session inside of XSLT


Here are two XSLT statements on how to set and retrieve the session value:
<!-- Setting the session -->
<xsl:value-of select="sc:SetSession('basket','1034=2|3200=1')"/>
<!-- Getting the session variable -->
<xsl:value-of select="sc:Session('basket')"/>
The following output can be observed on the front-end: 1034=2|3200=1