1).What is state management?
State management is the process that maintain state and page information over multiple requests for the same or different pages.
2).Http is stateless, What does this mean?
Stateless protocol is a communications protocol that treats each request as an independent transaction that is unrelated to any previous request
so that the communication consists of independent pairs of requests and responses.
3).What is Session?
Http is stateless, means when we open a webpage and fill some information and then move to next page then the data which we have entered will lost.It happed do to Http protocol stateless nature. So here session come into existence, Session provide us the way of storing data in server memory. So you can store your page data into server memory and retrieve it back during page postbacks.
4).What are the Advantage and disadvantage of Session?
5).What is Session ID in Asp.net?
Asp.Net use 120 bit identifier to track each session. This is secure enough and can't be reverse engineered. When client communicate with server, only session id is transmitted, between them. When client request for data, ASP.NET looks on to session ID and retrieves corresponding data.
6).By default where the sessions ID's are stored ?
By default, the unique identifier for a session is stored in a non-expiring session cookie in the browser. You can specify that session identifiers not be stored in a cookie by setting the cookieless attribute to true in the sessionState configuration element. We can also configure our application to store it in the url by specifying a "cookieless" session
7).Where does session stored if cookie is disabled on client’s machine?
8).Can you describe all the property set in web.config under session state?
sqlconnectionstring="data source=127.0.0.1;user id=<userid>;password=<password>"
Mode: The mode setting supports three options: inproc, sqlserver, and stateserver.
As stated earlier, ASP.NET supports two modes: in process and out of process.
There are also two options for out-of-process state management: memory based (stateserver), and SQL Server based (sqlserver). We'll discuss implementing these options shortly.
9).What are Session Events?
There are two types of session events available in ASP.NET:
You can handle both these events in the global.asax file of your web application. When a new session initiates, the session_start event is raised, and the Session_End event raised when a session is abandoned or expires.
10).How you can disable session?
If we set session Mode="off" in web.config, session will be disabled in the application. For this, we need to configure web.config the following way:
|Top 20 Interview questions on REST API|
|Basic ASP.NET - .NET Interview Questions and Answers II|
|Basic ASP.NET - .NET Interview Questions and Answers|
|Asp.Net, C# Interview Questions and Answers Set 3|
|Asp.Net Interview Questions and Answers Set 2|
|Sql Interview questions and Answers Set-1|
|Asp.Net Interview Questions and Answers Set-1|
|Why Use a DBMS?|
|What exactly is happening when we make a field a primary key?|
|Jquery Interview Questions Answers Set-1|
|ASP.NET Security Impersonation Interview Question And Answers For 2-5 Years Experienced|
|Asp.Net State Management/Session Interview Questions Answers|
|ASP.NET VIEW State Interview Questions and Answers 2-4 Years Experienced|
|ASP.NET Web.Config Interview Questions & Answers|
|How many types of memories are there in .net?|
|Which is the parent class of the Web server control?|
|Update a table using JOIN in SQL Server?|
|Types of Constructors in C#|
|What is the difference between HTML and Web server controls?|
|In which event are the controls fully loaded?|
|What is the life for items stored in ViewState?|
|How can we identify that the Page is Post Back?|
|What is the basic difference between ASP and ASP.NET?|
|What is an ajaxError() in jquery?|
|How we find loop in Linked List?|
|What are the different ways to deploy a assembly ?|
|Which is the common property in every Validation control ?|
|By default where the sessions ID's are stored ?|
|ASP.Net MVC Interview Questions Objective Part 1|