Copied to clipboard

Flag this post as spam?

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


  • Chris 110 posts 21 karma points
    Mar 20, 2009 @ 15:58
    Chris
    0

    sessions

    Hi,
    I've made for the first time some xslt with a session in it and works great! The problem I have is that I've no clue how to clear the session.......?! Does anybody overhere knows how to clear the umbraco session??
    my code is:
    [code]

    ]>

    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:umbraco.library="urn:umbraco.library"
    exclude-result-prefixes="msxml umbraco.library">












    [/code]

    The xslt is to stay on a certain level when a sidemenu is clicked. Right now I never can go back to it's original state so if some of you knows how to clear the session......it would make me very happy!
    greetings,
    Chris

    P.S. Not much info on Umbraco and Google about the session function.... :-k !

  • Darren 6 posts 20 karma points
    Mar 23, 2009 @ 21:33
    Darren
    0

    Whenever i need to reset a session in xslt i just use a variable and set it to nothing.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 24, 2009 @ 08:40
    Ismail Mayat
    0

    daz,

    You could also write your own xslt extension method to clear the session although Chris's method will also work. See here for more information.

    Regards

    Ismail

  • Chris 110 posts 21 karma points
    Mar 24, 2009 @ 09:04
    Chris
    0
  • Chris 110 posts 21 karma points
    Mar 24, 2009 @ 09:05
    Chris
    0

    oeps pushed the wrong buttons so sorry for previous (empty)
    Daz: your solution indeed worked........it just didn't cross my mind.........! =d> greetings,
    Chris

  • Pushpendra Singh 61 posts 116 karma points
    May 29, 2014 @ 19:40
    Pushpendra Singh
    0

    Hi Ismail,

    Please let us know the code of extension method how we can clear session in xslt.

Please Sign in or register to post replies

Write your reply to:

Draft