Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 671725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:24:19+00:00 2026-05-14T00:24:19+00:00

For testing I have 1 isolated page – no masters, controls, …. My sessions

  • 0

For testing I have 1 isolated page – no masters, controls, …. My sessions are lost after about 30 seconds. I’ve tried setting timeout on the page itself, in web.config, both, and neither. Tried forms authentication with timeout and windows authentication. Recycle the AppPool after changes.

I can response.write from the Session_Start , but I never get any response.writes from the Session_End.

Some things I’ve tried:

<sessionState mode="InProc"
  stateConnectionString="tcpip=127.0.0.1:42424"
  sqlConnectionString="data source=127.0.0.1;"
   cookieless="false"
   timeout="20" />

<sessionState mode="InProc" cookieless="false" timeout="20"/>

<sessionState mode="InProc" timeout="20"/>

<sessionState timeout="20"/>

No luck.

My runtime is set to:

<httpRuntime useFullyQualifiedRedirectUrl="true" 
maxRequestLength="204800" 
requestLengthDiskThreshold="204800" 
executionTimeout="600" />

I don’t know what this would be relevant, but I can’t think of anything else to post!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:24:19+00:00Added an answer on May 14, 2026 at 12:24 am

    If you’re doing inproc sessions (which the snippet says you are) and something keeps touching the virtual folder or anything below it be prepared to lose lots of sessions.

    If this is the case, this is the fix:

    'This is supposed to turn off the monitoring for directory deletes
    'See https://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=240686
    'This incurrs the penelty of an IISRESET or manually restarting the containing AppPool after every upgrade.
    Dim pi As PropertyInfo
    Dim o As Object
    Dim m As MethodInfo
    pi = GetType(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", BindingFlags.NonPublic Or BindingFlags.Public Or BindingFlags.Static)
    o = pi.GetValue(Nothing, Nothing)
    m = o.GetType().GetMethod("Stop", BindingFlags.Instance Or BindingFlags.NonPublic)
    m.Invoke(o, New Object() {})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand the general idea about unit testing and have used it in scenarios
I have done extensive testing with this and have isolated the problem to this.
I am new to testing.I have to test some C# classes.Kindly let me know
I am doing some performance testing and have found that SQL seems to be
I have a Testing project that contains a csv file which a webtest uses
I have been testing and playing around with jquery date picker below. http://jqueryui.com/demos/datepicker/ on
I have a testing PDA running on WM6.0. But my client uses WM5.0. Is
I have been testing the performance of reading server socket input stream. I found
For testing purposes I have this shell script #!/bin/bash echo $$ find / >/dev/null
For testing purposes I have and SSL certificate set up on a dev site

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.