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

benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

0 Answers   HCL,


How much data (Max K) can go into a QueryString?

4 Answers   TCS, WEB,


How do you do client-side validation in .net? How to disable validator control by client side javascript?

0 Answers  


How you will handle session when deploying application in more than a server?

0 Answers  


Differentiate globalization and localization.

0 Answers  






What is the difference between User Controls and Master Pages

22 Answers   IBM, TCS, Deloitte, IntraLogic, Markit,


What is a reflection?

0 Answers  


How to unit test Web API?

0 Answers  


please give a brief knowledge about these events ? page_render() page_prerender() page_unload page_loadcomplete page_preinit

1 Answers   Netsweeper,


What is the difference between client-side and server-side validations in webpages?

0 Answers  


What is the difference between dynamic SGA and static SGA?

0 Answers   MCN Solutions,


Difference between Dataset and DataReader ?

4 Answers   Infosys, Accenture, Techseol, Microsoft, BirlaSoft,






Categories