Session Timeout

Posted on 2004-09-10
Last Modified: 2010-05-18
hey there i have a problem, a major problem, with intermittent timeouts on my site. im using aspx pagges and the timeouts seem to come randomly. am i wrong here or should a time out only happen when a page is left idle for n-minutes? because its not making sense to me

heres my line from the web-config:

<sessionState mode="InProc" stateConnectionString="tcpip=" sqlConnectionString="data source=;user id=sa;password=" cookieless="true" timeout="20" />

thanks! please help its URGENT!!
Question by:fallenarmies
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

Accepted Solution

ahmedrashid earned 500 total points
ID: 12025021
One of the things that causes the session to expire is if the bin folder of the project is opened. So first please make sure that doesent happen. Also if the project solution on the server is build even that breaks the session.

Also you can check out these links:

Expert Comment

ID: 12025028
another link that might be helpful.
LVL 25

Expert Comment

ID: 12025095
The following links might be helpful:

The session timeout will also occure if ASP.Net Worker process aspnet_wp.exe is restarted because of the server settings.
Rashid is also correct and if you build the project and transfer the updated dll to the bin folder the session will also restart. The same is true when you will edit the web.config file.

HTH, Nauman.
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 17

Expert Comment

ID: 12025642
The bottom line is as of the current framework implamentation session is not bulletproof, follow the articles for help on tweaking, but realize the underlying truth.


LVL 18

Expert Comment

ID: 12025725
Are you clearing the session variables anywhere in ur code ? Please be very careful doing that. What method are you using ?

Expert Comment

ID: 12029116

    Do you have an anti-virus software installed??
    Disable that or configure it to NOT SCAN .asax and .config files.

Session data maybe lost intermittently because of antivirus software activity.
This problem can occur when antivirus software scans the Web application files. During the scanning process, the antivirus software may mark the Global.asax, the Web.config, and/or the Machine.config files as modified. This modification prompts the Microsoft .NET Framework to restart the Web application.
If the session data is stored in-process, all session data is lost whenever a Web application is restarted.


Expert Comment

ID: 12029124
Here's the MSDN link for the suggested solution as above..

PRB: Session variables are lost intermittently in ASP.NET applications;en-us;Q316148%20

Expert Comment

ID: 12052658
I'd just like to adress Nauman Ahmed if I may> I do appreciate you agreeing with my point but please understand that my name is Ahmad and not Rashid as you wrote.
Thank You.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
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…
Suggested Courses

626 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