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

Why is catch(Exception) almost always a bad idea?

4 Answers  


what is the difference between primary key and foreign key?

2 Answers  


can any one explain about 3-tier architecture and how to deploy 3 layers of 3-tier architecture in 3 different servers.plz send me .net code

1 Answers   Wipro,


How do you a replicate a set of controls across a number of ASP Pages

2 Answers  


What is the difference between a.Equals(b) and a == b?

4 Answers  






I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  


What are the different Key TreeView Properties in Asp.net 2.0?

1 Answers   TCS,


How to upload a file using file upload control inside the Update Panel???

2 Answers  


What is .netmodule and how is different from .dll and .exe

2 Answers   NIIT,


.net allows which inheritence

6 Answers   AG Technologies, Samcomm,


How do you make your site SSL enabled ?

3 Answers   Satyam,


Whats an assembly?

6 Answers  






Categories