This project has moved and is read-only. For the latest updates, please go here.

How to get session in template?

Oct 21, 2010 at 4:46 AM


I have a session and now I want to get value of session in view template.

Pls help!

Oct 21, 2010 at 2:41 PM

According to NVelocity documentation, there is '$session' available:

Oct 22, 2010 at 5:29 AM

@mattgroves: Thanks you, but this link not have details for get a session, sample

Anyone help me?

Oct 22, 2010 at 5:11 PM

What exactly are you asking? It provides access to the session object via $session. From there you can use it just like you use the session in C#.

Oct 22, 2010 at 11:47 PM
Edited Oct 29, 2010 at 12:11 AM

done, solved