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 340401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:36:45+00:00 2026-05-12T10:36:45+00:00

I recently discovered that when you have a page set to session readonly and

  • 0

I recently discovered that when you have a page set to session readonly and you are using inproc (in memory) session storage, the session is still writable on that page and is not truly read only. Out of process session storage does respect the readonly setting.

Do you still get the benefit of having no session lock contention when a page is set to readonly and using inproc mode? Will multiple simultaneous requests with the same session Id have to wait for the session lock to release when in readonly and inproc?

  • 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-12T10:36:46+00:00Added an answer on May 12, 2026 at 10:36 am

    BuzzAnn,

    Microsoft’s documentation on the topic indicates that setting your page-level session state mode to “ReadOnly” should safeguard you against concurrent attempts to write session state information (they’ll queue and be handled serially), but multiple readers will be allowed. See the “Synchronizing Access to the Session State” section:

    http://msdn.microsoft.com/en-us/library/aa479041.aspx

    When the EnableSessionState property for a page is set to “ReadOnly,” each page request attempts to get a reader lock on the state information. In standard ReaderWriterLock semantics, any number of readers can have concurrent access to the information being protected. Any request that achieves a writer lock (e.g., through EnableSessionState being set to “true”), though, will block writes and reads on the session state information until the request holding the writer lock completes.

    As long as all you’re trying to do is read session state information from your pages while they have EnableSessionState set to “ReadOnly,” all read requests will proceed without blocking. If you attempt to write, though, the documentation isn’t clear about what will actually happen. Assuming a ReaderWriterLock is all that’s being used to synchronize access, my guess is that you won’t be protected against overwrites, race conditions, and other non-synchronized access problems.

    If you’re going to attempt to write to session state, be sure to set EnableSessionState to “true” to ensure that a writer lock is achieved and synchronization occurs as is needed.

    I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently looked into this and discovered that using FBML pages in a
I'm using libsvm library in my project and have recently discovered that it provides
Recently I have discovered that my release executable (made with msvc++ express 2008) becomes
We recently discovered that the Google Maps API does not play nicely with SSL.
I recently have discovered a warning happening in Firefox that says Warning: Unknown pseudo-class
I have recently discovered that I can make windows executables with g++ that have
I recently discovered that UIView s should only have UIViewController s when they fill
We’ve recently discovered that WCF does not support timing out operations on the service
I'm not sure I understood how alloc and retain work. Recently I discovered that
We regularly setup simple winforms using Linq To Sql. I recently discovered that the

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.