What is the use of sessionstate tag in the web.config file?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a user developed application?

525


Explain State management in asp.net

623


How to rename a table using sql queries?

570


List all templates of the repeater control.

565


What are the page life cycle events?

493






What is enableviewstate?

534


Can you explain architecture of your project ?

616


What is autopost?

522


Describe paging in asp.net?

674


Can more than one person use the same login?

570


Explain a program using code nuggets to create a simple application? : asp.net mvc

509


Define globalization and localization.

563


What is the difference between abstract class vs interface? Can give me the real time examples?

486


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

557


in which protocol ASP.NET WEB API Work?

611