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 is <location> tag?

2 Answers  


How can you achieve nested Masterpages in 2.0?

1 Answers   Microsoft,


How to change the form layout in ASp.net 2.0 ?

1 Answers   Netsweeper,


version information of assembly consist of _________ values.

3 Answers   AG Technologies,


Where do you store the information about the user?s locale?

1 Answers   Visual Soft,






How to do Caching in ASP?

1 Answers  


You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?

6 Answers   TCS,


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

2 Answers  


Types of objects in ASP ?

2 Answers   Microsoft,


Can we change the session timeout in ASP.NET, if yes then how and from where?

7 Answers   L&T,


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

1 Answers   MMTS,


Explain which is best suited place in the Application Start and Session_Start subroutines with an example?

3 Answers  






Categories