troubleshooting Question

Session variables keep expiring or dying

Avatar of michouis
michouis asked on
.NET ProgrammingASP.NETVisual Basic.NET
10 Comments2 Solutions525 ViewsLast Modified:
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.

Please help.
P.S. Our IIS 6 server is running as a virtaul machine in case this matters.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros