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

  • SEARCH
  • Home
  • 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 am just starting out with DI & unit testing and have hit a
I have started testing my UI using qUnit, so I need to simulate some
For testing purposes I have to generate a file of a certain size (to
As I have been testing sites, I have found reCAPTCHA s getting more and
I've been trying to implement unit testing and currently have some code that does
I am putting together some ideas for our automated testing platform and have been
I have done a bit of testing on this myself (During the server side
I have a simple website I'm testing. It's running on localhost and I can
I have been hearing that with unit testing we can catch most of the
I have a project that I would like to start beta testing soon, it

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.