What are Session states available and its Uses?

Answer Posted / santosh deshmukh

InProc:- In this mode Session state is stored in the memory
space of the
Aspnet_wp.exe process. This is the default setting. If the
IIS reboots or web
application restarts then session state is lost.

StateServer:-In this mode Session state is serialized and
stored in a separate
process (Aspnet_state.exe); therefore, the state can be
stored on a separate
computer(a state server).

SQL SERVER:- In this mode Session state is serialized and
stored in a SQL Server database.

Session state can be specified in <sessionState> element of
application configuration
file. Using State Server and SQL SERVER session state can
be shared across web farms
but note this comes at speed cost as ASP.NET needs to
serialize and deserialize data over
network again and again.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of cookies are there in asp.net?

622


Explain the working of passport authentication.

619


How to you can limit Access to Web API to Specific HTTP Verb?

766


What is the use of express session?

627


What is viewstate? In which event of the page life cycle, is the viewstate available?

692






Explain the difference between web user control and web custom control?

607


What are the data controls available in asp.net?

603


What is session in http request?

664


What is difference between or and orelse?

633


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

600


Explain the asp.net session state modes.

710


What is tracing? Where is it used?

669


What is _dopostback in asp net?

604


What are the security types in asp.net?

661


Explain the various authentication mechanisms in asp.net.

575