Solved

session gets terminated randomly

Posted on 2009-05-13
4
560 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linq asp.net mvc 13 17
Help with error in Query 2 31
call a controller action method from Global.asax in asp.net 1 20
Google Maps with Webforms 1 14
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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