Solved

session gets terminated randomly

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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