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 exact purpose of http handlers?

0 Answers  


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

0 Answers  


Contrast the use of an abstract base class against an interface?

5 Answers   iLink,


What is the lifespan for items stored in ViewState?

4 Answers   Siebel Systems,


what is view state and its use

10 Answers   DELL, Efextra, HCL,






Explain the purpose of storyboard.targetproperty.

0 Answers  


What are PDBs? Where must they be located for debugging to work?

4 Answers  


What are standard controls?

0 Answers  


Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

0 Answers  


Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/questionform Write c# program to get the above desired output for the given Input.....

3 Answers   Bally Technologies,


How can you apply a theme to your asp.net application?

0 Answers  


Can session variables be accessed from code-behind?

2 Answers   Microsoft, RMS,


Categories