c# Umbraco Razor Display List of all Session Varioables
@inherits umbraco.MacroEngines.DynamicNodeContext
<p>Session Variables</p>
@HttpContext.Current.Items.Count:<br />
@for (int i =1; i <= @HttpContext.Current.Session.Contents.Count; i++)
{
@HttpContext.Current.Session.Keys[i-1];
<br />
}
<p>Session Variables</p>
@HttpContext.Current.Items.Count:<br />
@for (int i =1; i <= @HttpContext.Current.Session.Contents.Count; i++)
{
@HttpContext.Current.Session.Keys[i-1];
<br />
}
Comments
Post a Comment