rulec444

rulec444

  • NA
  • 81
  • 0

Sporadically losing sessions in asp.net app

Jan 10 2006 12:23 PM

I am at my wits end and am hoping someone can help me.

 

I have an asp.net/c# application which works fine on my laptop, in Production and I recently put in on a QA/Test server and a Development server.  It works perfect everywhere except in Dev.

 

The first page is a logon page saved in a session.  This username is used throughout the app; however, within a minute the user is directed back to the logon page.  There are also other various session variables in the app that are used but these are also lost, or sometimes, as you are navigating through the app, the session values change to a previous value selected.

 

This is not consistent, it doesn’t always happen at the same place or in the same time frame.

 

I’ve searched the web for solutions and have ensured these things have been done:

  1. the server has .Net Framework 1.1 (apparently this was a bug in 1.0);
  2. it has IIS 6.0, and the options for this directory have “Enable session state” checked and the time is set for 20 minutes;
  3. Application pools is set to shut down worker processes after 1740 minutes and idle timeout is set at 20.
  4. the web.config is set at 

<sessionState mode="InProc" cookieless="false" timeout="3600" /> “ and,

<authentication mode="Forms">

<forms name="XXX" loginUrl="Logon.aspx" protection="All" timeout="3600"></forms>

</authentication>

  1. there is no virus software on this server.
  2. In IE browser (6.0), allow cookies is enabled, and under the advanced, privacy and security tabs, I’ve ensured everything is set exactly like the servers that are working correctly.
  3. The server has a standard name (no underscores)

 

I’m not sure what else to try, but this is driving my users insane.  I really don’t believe it is in the code or web.config file since I do not have these problems on the other servers.

If anyone has any suggestions, I would greatly appreciate the advice.

 

Thanks.

 


Answers (4)