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

Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process

1 Answers   HCL, Visual Soft,


What is CTS, CLS and CLR ?

20 Answers   CGI, TCS, Satyam, Palm Technology, Reliable Technology, Synergy,


In a page u have Web user controls . So what is the order in which the Page life Cycles takes place?

1 Answers  


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

0 Answers   Netsweeper,


version information of assembly consist of _________ values.

3 Answers   AG Technologies,






What are the type of session in Asp.Net

3 Answers  


Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks

1 Answers  


What are the disadvantages of viewstate/what are the benefits

3 Answers  


what is wpf and wcf in .net explain with an example?

2 Answers  


Why should i prefer JSP over asp.net or any other web development language..??

0 Answers  


what is the assembly?

2 Answers  


What are Master pages? How to define a Master page?

3 Answers  






Categories