Sessions and 4.1
I thought my sessions were working post 4.1, but I'm not positive. I'm setting session variables but the session seems to remain empty. I've added enableSessionState to the pages node of the web.config. I've also added the session module to the HttpModule.
I don't think I had anything in the web.config before now. I didn't backup my web.config prior to upgrading to 4.1
I'm trying to access the session in the Page_Load event.
So is anyone else having session issues? Anybody have any suggestions?
Thanks
Hi Eric,
I am not able to replicate an issue with the session. Here is a sample code that returns the object correctly
protected void Page_Load(object sender, EventArgs e)
Session["FirstName"] = "MyFirstName";
Session["LastName"] = "MyLastName";
void trigger_Click(object sender, EventArgs e)
var f = Session["FirstName"];
var l = Session["LastName"];
All the best,
Ivan Dimitrov
the Telerik team
Figured it out. The page now had output caching on, so even after loading values out of the session, it wasn't showing up on the page. Simple.