Showing posts with label session state. Show all posts
Showing posts with label session state. Show all posts

Thursday, 18 September 2014

Latest dotnet MNC interveiw questions

1) How to stop a function to be inherited?
2) Can we overload static constructor? By using Virtual Private Inheritance
3) Can we call the finalize method manually? No
4) Can we have finally without catch block? Yes
5) Can we have multiple catch blocks for single try? Yes
6) What is return type of multicast delegate? Yes

Monday, 25 November 2013

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



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

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"/>

What are the different modes for the sessionstates in the web.config file?


           What are the different modes for the sessionstates in the web.config file?
Off
Indicates that session state is not enabled.
Inproc
Indicates that session state is stored locally.
StateServer
Indicates that session state is stored on a remote server.
SQLServer
Indicates that session state is stored on the SQL Server.

Popular Posts