What is the default sessionState in an asp.net mvc 3 application?

12,089

As of now the default Timeout = 20 minutes.

These are the default values for .Net Framework 4. I think they don't change because of MVC 3.

Share:
12,089
Travis J
Author by

Travis J

I really appreciate the Stack Exchange community. This isn't a terrible search . VP of a medium company, B.S. in Computer Science, mostly working with the ASP.NET MVC technology stack. I am the only person at the company who deals with software development making me fill the rolls of a software designer, programmer, dba, server admin, and graphics artist. As you can see from my gravatar, this causes me to wear many hats (hint: they are all from an old winterbash). My main goals when designing and coding are: how can I make the user experience easiest, and how can I reduce redundancy. "Acknowledge your faults so you can overcome them."

Updated on June 18, 2022

Comments

  • Travis J
    Travis J almost 2 years

    I was considering using <sessionState mode="InProc" timeout="45" /> because some users are repeatedly logging in, and I would like to save them some time. However, before I add this to my web.config file, I wanted to make sure there would be no side affects.

    I read up on sessionState versions, although I already am fairly aware of what goes on, I was curious to know what the default setting for an asp.net mvc 3 application was as there is no defined sessionState inside of my system.web at this time.

    I know that the application has access to Session["key"] without the declaration, although I try to avoid putting that type of load on the Session. I would assume that there is a setting in IIS 7 which my application is inheriting (This application is on a shared hosting environment).

    I understand that there could be issues if I was using a dedicated database or server for the Session, but this is just a basic setup as far as that goes, nothing fancy.

    Is there a default sessionState for asp.net mvc 3? Is it just being inherited? Will there be side affects from overriding it in my web.config if it is defined elsewhere in IIS?

  • Travis J
    Travis J over 11 years
    I had looked at this page: msdn.microsoft.com/en-us/library/h6bb9cz9(v=vs.71).aspx , but did not find the link you posted in your answer when searching. You are correct in that the .Net values should not change for mvc. Thank you for the information, it clearly states The default is the InProc value. and the default timeout is 20.
  • Anderson Pimentel
    Anderson Pimentel over 11 years
    You're welcome! BTW, MSDN has been a little "wild" after the last layout changes. =D
  • Dennis T --Reinstate Monica--
    Dennis T --Reinstate Monica-- over 5 years
    I think it’s the other way around. See stackoverflow.com/questions/17812994/…. And docs.microsoft.com/en-us/previous-versions/dotnet/… from above. Thanks for the recommendation on using StateServer sessionState mode.