I'm working with an IIS V6.0 and ASP.NETwith .NET Framework 3.5 SP1.
Most time of the day I'm fixing issues relating to ASP.NET losing Session Variables betweeen requests. It's frustrating.
For example: I have Page A and Page B. While A is giving B an object of an own class with
Session["something"] = myObject; //on Page A
and Page B wants to use it like that:
MyOwnClass myObject= Session["something"] as MyOwnClass;
This works about 95% of the time. But the other 5% myObject
on B is null
, while refreshing page again it might be the Object I put to Session again.
How is that possible? What can I do about it?
It's occuring over different browsers. So even the companys IE7 shouldn't be part of the problem. I tried various Session TimeOut Lengths but...nothing.