Solved

Session Timeout

Posted on 2004-09-10
8
7,759 Views
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=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="true" timeout="20" />

thanks! please help its URGENT!!
0
Comment
Question by:fallenarmies
[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
8 Comments
 
LVL 1

Accepted Solution

by:
ahmedrashid earned 500 total points
ID: 12025021
Hi
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:
http://forums.devx.com/showthread.php?threadid=99428
http://www.dotnetspider.com/Technology/QA/ViewQuestion.aspx?QuestionId=17
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21084438.html
0
 
LVL 1

Expert Comment

by:ahmedrashid
ID: 12025028
another link that might be helpful.

http://www.csharphelp.com/archives/archive185.html
0
 
LVL 25

Expert Comment

by:nauman_ahmed
ID: 12025095
The following links might be helpful:

http://www.experts-exchange.com/Programming/Q_20646457.html?query=ASP.Net+session+timeout&clearTAFilter=true
http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20894443.html?query=ASP.Net+session+timeout&clearTAFilter=true

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.
0
Independent Software Vendors: 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!

 
LVL 17

Expert Comment

by:AerosSaga
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.

Regards,

Aeros
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 12025725
Are you clearing the session variables anywhere in ur code ? Please be very careful doing that. What method are you using ?
-@Baan
0
 
LVL 8

Expert Comment

by:daffodils
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.

0
 
LVL 8

Expert Comment

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

PRB: Session variables are lost intermittently in ASP.NET applications
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q316148%20
0
 
LVL 1

Expert Comment

by:ahmedrashid
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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