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
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
Explain about Multi-Language integration?
What is the difference between runtime version and version?
Is asp.net a programming language?
How do you secure your configuration files to be accessed remotely by unauthorized users?
What is Razor View Engine
What is asp.net ajax?
What is ispostback method in asp.net? Why do we use that?
Difference between Response.redirect vs server.transfer?
Explain the difference between overriding and overloading?
Define xmlreader class.
Can a master page have more than one contentplaceholder?
How does a web application session work?
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
What is state management in asp.net with example?