SessionState - type of sessionstate and when and how to use
it



SessionState - type of sessionstate and when and how to use it..

Answer / alb.shah

SessionState tag is used to define session attributes.
One very important is Mode which can have values: "state
server", "SqlServer", "InProc"; depending how you want to
preserve session state.
"State server" is used if you want the state to be
preserved in other server.
"SqlServer" is used if you want the state to be preserved
on a SQL database.
"InProc" is used if you want the state to be preserved in
the same process where the asp.net page is running.

Other attributes that are also included for the
SessionState tag are: ConnectionString,
SqLConnectionString, userId, password, cookiless, tiemout.

if the session state is going to be preserved in other
server, or can be ""SqlServer" if session state is going to
be preserved in a SQL database

Configuring session state: Session state features can be
configured via the <sessionState> section in a web.config
file. To double the default timeout of 20 minutes, you can
add the following to the web.config file of an application:
<sessionState
timeout="40"
/>

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is a Cookie? Where is it used in ASP.NET?

0 Answers   MindCracker,


Where is the view state data stored?

0 Answers  


What a diffgram is, and a good use for one?

0 Answers  


What are the features that make asp.net more used framework? : asp.net mvc

0 Answers  


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

0 Answers  






What is latest version of asp.net mvc? : Asp.Net MVC

0 Answers  


How to Insert/Add in ASPXgridview

0 Answers   Infosys,


How tooltip is set through code-behind in ASP.NET?

0 Answers  


Whats the difference between abstract factory pattern and factory pattern?

0 Answers  


What base class do all Web Forms inherit from?

2 Answers   Siebel Systems,


Can we create a multiple user simultaneously ?

0 Answers   MCN Solutions,


What is boxing and unboxing in asp.net?

0 Answers  


Categories