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 the importence of the INTERFACE? but not the inheritence concept?and why we r declaring the empty methods in that? we can directly implements with in the class know? Tell me the importence?

2 Answers  


Explain in what order a destructors is called.

0 Answers  


What r new things introduced in ASP.NET 2.0 in comparision to ASP.NET 1.1

1 Answers  


What is the base class of .NET?

6 Answers  


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

0 Answers  






Explain the difference between array and linkedlist?

0 Answers  


How can you execute stored procedure from windows application?

1 Answers   Microsoft,


What?s a bubbled event?

1 Answers  


What is boxing and how it is done internally?

1 Answers   Microsoft,


What is server transfer?

0 Answers  


Difference between singleton and singlecall.

0 Answers  


How could you modify xaml content from javascript?

0 Answers  


Categories