I am not sure, where are you setting the
Session
Variable. But If you are setting your
Session
Variable in
Application_Start
in Global.asax file. Then It will not work.
You need to set a Session in
Application_AcquireRequestState
block.
Eg.
protected void Application_AcquireRequestState(object sender, EventArgs e)
{
Session["ExampleKey"] = "Example Value";
}
Good luck.