Solved

session gets terminated randomly

Posted on 2009-05-13
4
561 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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