in Education by
What are different methods of session maintenance in ASP.NET?

1 Answer

0 votes
by

Session is a State Management Technique. A Session can store the value on the Server. It can support any type of object to be stored along with our own custom objects. A session is one of the best techniques for State Management because it stores the data as client-based, in other words the data is stored for every user separately and the data is secured also because it is on the server.

We can set the session on one of the following 2 types of configuration files:

  1. Machine Configuration file: Machine Configuration is applied for all application.
  2. Application Configuration file: It's applied for only application by application basis.

    Application Configuration file

Session Mode

In ASP.NET there are 4 types of Session Mode.

Off

We can disable the session mode for the entire application using the off mode.

ASP.NET page

According to performance and durability the difference between InProc,State Server and SQL Server is:
Session mode Performance Durability
InProc More(1 processor and 1 server) less.
State Server Medium(n processor and 1 server) Medium
SQL Server Less More

Related questions

0 votes
    What are the different Session state management options available in ASP.NET?...
asked Apr 6, 2021 in Education by JackTerrance
0 votes
    Explain Cookie-less Session in ASP.NET?...
asked Apr 8, 2021 in Education by JackTerrance
0 votes
    What is the difference between HttpContext.Current.Items and HttpContext.Current.Session in ASP.NET?...
asked Apr 7, 2021 in Education by JackTerrance
0 votes
    What are the different validators in ASP.NET?...
asked Apr 6, 2021 in Education by JackTerrance
0 votes
    What are the Navigations techniques in ASP.NET?...
asked Apr 8, 2021 in Education by JackTerrance
0 votes
    What are the differences between ASP.NET HttpHandler and HttpModule?...
asked Apr 7, 2021 in Education by JackTerrance
0 votes
    What are the authentication modes in ASP.NET for security?...
asked Apr 7, 2021 in Education by JackTerrance
0 votes
    What are the HTML server controls in ASP.NET?...
asked Apr 7, 2021 in Education by JackTerrance
0 votes
    What are the data controls available in ASP.NET?...
asked Apr 6, 2021 in Education by JackTerrance
0 votes
    What are Cookies in ASP.NET?...
asked Apr 6, 2021 in Education by JackTerrance
0 votes
    How can we improve the Performance of an ASP.NET Web Page?...
asked Apr 8, 2021 in Education by JackTerrance
0 votes
    What is Enterprise Library in ASP.NET?...
asked Apr 8, 2021 in Education by JackTerrance
0 votes
    What is Data Cache in ASP.NET and how to use?...
asked Apr 8, 2021 in Education by JackTerrance
0 votes
0 votes
    What is Themes in ASP.NET?...
asked Apr 8, 2021 in Education by JackTerrance
...