Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nam Gi VU 26 posts 47 karma points
    Apr 08, 2010 @ 06:33
    Nam Gi VU
    0

    How to get a variable on Session?

    I have a usercontrol that receive an input as product id.

    In my current template, I need to read this id from the Session, e.g. Session["productId"]. How can I do this?

    Please help!

  • Petr Snobelt 923 posts 1535 karma points
    Apr 08, 2010 @ 08:50
    Petr Snobelt
    0

    There are methods for accessing session in umbraco.library

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

    Petr

     

Please Sign in or register to post replies

Write your reply to:

Draft