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

Hi please tell me what is ISNOTPOSTBACK,POSTBACK,AUTOPOSTBACK and also the extensions of aspx,asmx,ascx its urgent plz reply me soon....

6 Answers   Logica CMG,


What is source control?How to use in asp.net?

1 Answers  


Explain page output caching?

0 Answers  


Can we use multiple forms in single asp.net application?

3 Answers   Polaris,


In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

0 Answers   Siebel Systems,






How would you enable impersonation in the web.config file?

0 Answers  


Less than one page, how many windows will you be able to maintain?

0 Answers   Atos Origin,


What is new asp.net core?

0 Answers  


I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?

7 Answers   eMids, Infotech, Integra, TCS, Wipro,


What is paging in context of Memory?

0 Answers   Microsoft,


Is it necessary to lock application state before accessing it ?

1 Answers  


Explain the difference between page.registerclientscriptblock and page.registerstartupscript?

0 Answers  


Categories