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 Auto-event wireup? what is the default value for this? when u change the value what will happen?

1 Answers   CMC,


How to Page Execute in asp.net(inside browser)

1 Answers   Satyam, Wipro,


How to handle error while project running on live

2 Answers  


Explain the difference between AutoPostBack and IspostBack in ASP.NET?

0 Answers   Sans Pareil IT Services,


what are the types of ASP objects ?

7 Answers   Satyam,






Can session variables be accessed from code-behind?

2 Answers   Microsoft, RMS,


What is a form tag?

0 Answers  


What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?

0 Answers  


What is considered a service provider?

0 Answers  


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

1 Answers  


What is interval time of GC in .net

2 Answers  


What is difference Between Authentication and authorization?

0 Answers   MCN Solutions,


Categories