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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:16:34+00:00 2026-05-27T21:16:34+00:00

I am developing an ASP.NET website. I want to know which one is better

  • 0

I am developing an ASP.NET website. I want to know which one is better in session state mode: InProc or SQL Server? I need to hear about your experiences on this issue.

Another question is about cookieless attribute. Is there any security hole in my site if I set it to true? In all the samples I saw in MSDN site, this attribute was set to false.

And the last question is about Timeout attribute. Does this attribute effect my sessions lifetime when I set it to InProc mode?

  • 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-27T21:16:34+00:00Added an answer on May 27, 2026 at 9:16 pm

    Better in terms of what?

    • InProc session is much much faster, has less requirements (serialization), but unusable when you’re running your application on several web servers;

    • Sql session is much slower, has object serialization requirements, but can be shared between several web servers;

    That’s the main difference between them that developers should mostly care about.

    Cookieless session

    You should ask a separate question regarding this, because it’s a completely unrelated question to previous one.

    If you turn off cookie session ID handling you will be able to see Session ID. But so can you if you check cookies. The number is there.

    And Session cookie expiration is set to browser session so it’s practically the same in terms of persistence.

    Sessions can be hijacked if you know other party’s Session ID. It’s easier of course if you use cookieless sessions because all you have to do is to change URL…

    And there’s another thing with copying URLs and sharing/saving (Favourites). I suppose I don’t have to explain the problem.

    Cookieless sessions are false by default because vast majority of browsers support cookies. You should only turn it on when you know your clients won’t have cookies.

    Session Timeout

    Session timeout is always related to session expiration regardless of session type. But you have to be aware that SQL session state may not obey this setting when you use SQL Express editions because you need SQL Server Agent service to discard expired sessions. You can mitigate this problem by writing you own Windows Service that discards expired sessions.

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

Sidebar

Related Questions

I am developing an ASP.NET MVC website. The reporting is done by SQL Server
I'm developing a website with ASP.NET MVC, NHibernate and Fluent NHibernate and want to
I'm developing a new ASP .NET website which is effectively a subset of the
I'm developing an asp.net intranet website with a ActiveDirectoryMembershipProvider and a SqlProfileProvider. One of
I am developing my application in asp.net 3.5 and sql server 2005, and I
I am developing a C# VS 2008 / SQL Server 2008 ASP.NET Web Applications
I am developing a website using asp.net c# and I want to put a
I'm developing an ASP.NET MVC application in which I want to encrypt a short
I'm new to the asp.net. I'm developing one web site which is having diffenent
I am developing a multi-tenanted asp.net application and want to know if the following

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.