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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:18:57+00:00 2026-06-10T13:18:57+00:00

There are multiple modes in which session data can be stored in a ASP.net

  • 0

There are multiple modes in which session data can be stored in a ASP.net C# application. One of them is InProc mode. What is the limit of the maximum amount of data that can be held in the InProc mode? Is this a configurable limit?

Edit: I know this is probably un-cool and even sounds blasphemous but I am in a unique situation where I will probably need to store 10MB files in the session. Probably dozens of them at a time. Thus the question.

  • 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-06-10T13:18:59+00:00Added an answer on June 10, 2026 at 1:18 pm

    Whether or not this is a good question or a scary one depends on whether or not you are trying to plan capacity for numerous “skinny” sessions (fine) or planning to put a huge amount of data into session (bad).

    IIS allows private memory control and virtual memory control. This is unlimited by default; if you do set a limit, it can be used to trigger app pool recycles. Recycling the app pool is probably not desirable, e.g. 1000 users are logged in, memory limit is reached, site restarts and session data is lost for everyone. Request throttling might be more appropriate.

    Remember, “The amount of data storage reserved for a process is only limited by the amount of space that the operating system can get on the disk.” (reference) but as soon as you are paging to disk, performance will suffer badly. @RB’s comment about out of process “fat” sessions causing heavy network traffic is also apropos.

    As a note, MemoryCache provides more granular size/expiration control. It’s very similar to what ASP.Net uses. Based on your comment about 10MB files, I would suggest looking at this option. It will run in process like session (and still be subject to the same memory limit as session), but you can control it to some degree.

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

Sidebar

Related Questions

In emacs, is there a way to get hideshow-mode to recognize multiple regular expressions
There are multiple overloads for sqlcommand.Parameters.Add(...) function. Some of them do not take size,
Say there are multiple requests in a integration test, some of them are local
I know there are multiple posts on this but I still can't get it
I have an application where there are multiple processes. They share the reading and
I'm using acts_as_nested_set on a model which is called node. There are multiple lists
I'm currently trying to create a view in asp.net MVC2 which includes a checkbox
Why are there multiple (2) web.config files: 1 in the root directory 1 in
Background: There are multiple DBPArentProductKEys associated with a POG.ID. I need to count the
Is there a multiple instances pattern in F# somewhere? Consider that I'm working on

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.