What is the use of sessionstate tag in the web.config file?




Answers were Sorted based on User's Feedback



What is the use of sessionstate tag in the web.config file?..

Answer / p.ramakrishna

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 ?    7 Yes 0 No

What is the use of sessionstate tag in the web.config file?..

Answer / eduardo belmonte

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

Is This Answer Correct ?    7 Yes 3 No

Post New Answer




More ASP.NET Interview Questions

what to magage the state manament in asp.net with respect to in_prock and out_prock

1 Answers   Aviva,


what is usercontrol how we can use acess the controls that are present in the usercontrol in the aspx page suppose we have 2 text boxes in a user control how u can acess the 2 textboxs in the aspx page

1 Answers  


How to stop the inheritance?

2 Answers   TCS,


Types of optimization and name a few and how do u do?

1 Answers   Accenture,


What is the need of client side and server side validation ?

1 Answers   Keane India Ltd,






When is an object collected by the Garbage Collector? [Four options were given]

1 Answers   ABC,


What is the difference between Proxy and Contract?

1 Answers  


can we transfer data from one page to another page using viewstate if so how?if not y?

1 Answers   Patni,


.net allows which inheritence

6 Answers   AG Technologies, Samcomm,


define silverlight and advantages ?

3 Answers   QA,


WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS.

11 Answers   HCL, Microsoft,


Can the validation be done in the server side? Or this can be done only in the Client side?

2 Answers  






Categories