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]
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 !
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
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 !
Whenever i need to reset a session in xslt i just use a variable and set it to nothing.
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
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
Hi Ismail,
Please let us know the code of extension method how we can clear session in xslt.
is working on a reply...