Just launched an ASP .Net Web Site and am using session variables allot throughout to store customer name, shopping cart table, product tables, order date, PO# etc... the list goes on. I have set <sessionState timeout="520"></sessionState> in my Web.config file. I also set the IIS 6 application pool settings; recycle worker process at 5:00 am every day only, no IDLE TIMEOUT, Rapid Fail Protection is on for 20 errors in 1 minute which we are not getting so many errors in 1 minute according to the application event viewer on this Windows 2003 server. ASP.Net 2.0. 3 gigs of RAM, no memory usage issues. Normal user load = 20 users at a time.
Yet our users are often getting nullreference exceptions, object reference not set to an instance of an object. Every time I review the page and line of code this happens at it can only be due to the session expiring for some unknown reason. This is extremely urgent as our customers are losing faith in our web site and are not going to order from it any more.
P.S. Our IIS 6 server is running as a virtaul machine in case this matters.