Click here to Skip to main content
15,919,422 members

Comments by donnie_regan (Top 3 by date)

donnie_regan 29-Jun-16 5:41am View    
Thanks i tried that but it is still creating a new session eachtime, it must a setting elsewhere within the existing application that is causing it.
donnie_regan 28-Jun-16 8:40am View    
This is my webapi controller, i have tried setting enableSession to true here but it made no difference.

public string Index()
{

var session = HttpContext.Current.Session;

if (session != null)
{
if (session["TestSession"] == null)
{
session["TestSession"] = DateTime.Now;
}
return "TestSession: " + session["TestSession"];
}

return ("No Session");
}
donnie_regan 28-Jun-16 8:31am View    
in the Application_PostAuthorizeRequest() method