Solved

session gets terminated randomly

Posted on 2009-05-13
4
556 Views
Last Modified: 2013-11-07
Hello Everyone,
I came across a weird issue with session, whille working continously on my site;
session gets terminated and user is logged out from the site, it is a very random behaviour on any random event;
Can an Exception cause session to expire?
Can anyone guide me what can be possible causes of session getting terminated?

I appreciate for your help. looking forward to suggestions.
0
Comment
Question by:winjittechnologies
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
Maverick_Cool earned 84 total points
ID: 24373862
0
 
LVL 7

Assisted Solution

by:Maverick_Cool
Maverick_Cool earned 84 total points
ID: 24373873
read these lines there:
"We eventually found that there is a limitation/feature of Internet Explorerthat discards *ALL* cookies for the one domain (ergo, our application)if the number exceeds 20 ... that includes the cookie that maintainsthe session for the browser.

We've since moved to using alternate methods of storing values that we need to store that avoid cookie usage altogether.

And yes, the session is kept in a non persistent cookie so you won'tsee it. We had to devise a small cookie display window in asp.net todisplay all the cookies the application had going."
0
 
LVL 11

Assisted Solution

by:Muhammad Ousama Ghazali
Muhammad Ousama Ghazali earned 41 total points
ID: 24374411
In our experience, one most obviously not looked for reason in such case is Anti-Virus programs those are running on the web server. Many of the anti-virus applications tend to have real-time monitoring of files and as soon as website files and/or web.config file is accessed they try to other check files in the same folder, and leave an updated accessed/modified date stamp on it. This causes the web application to restart itself which ultimately causes sessions to terminate unexpectedly many times.
Try placing web.config or the folder containing it within the exceptions of the anti-virus application and see if it improves the situation.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now