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 the extension of master page in asp.net?

0 Answers  


How to do state management in ASP.NET?

0 Answers   BirlaSoft,


Differentiate between namespace and assembly.

0 Answers  


Which tool you have done?

0 Answers  


About delegates ?

7 Answers   TCS,






What is Model-View-View Model?

0 Answers   MCN Solutions,


If we remove web.config or machine.config from the application then, is this application will works?

0 Answers  


How to register exception filter globally?

0 Answers  


Is it right that ASP.NET Web API has replaced WCF?

0 Answers  


What should you do is you want to remove an existing component but would like to make some funtionalities?

0 Answers  


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

0 Answers   Siebel,


How Web Service help? What is the difference between Remoting & Web Servcies?

2 Answers  






Categories