Hello DW Guys,
Wanted to ask you if it is possible to access Session state in DynamicWeb templates with Razor?
I wanted to store a single string value as string. And use it from time to time if I need it.
Problem is that I need to keep it as long as whole session is active.
Or maybe there are some alternatives I can use?
Currently I am trying to use something like this:
HttpContext.Current.Session["whatever"] = "mystring";
But Razor compains :-(
RazorEngine.Templating.TemplateCompilationException: Unable to compile template. The name Http Context does not exist in the current context
Adding @using namespace statement does not help neither :-(
Any suggestions?
Regards,
Dmitrij