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

how can create login from create and written conde in asp.net

1781


What is the typical session identifier?

575


Explain managed code an un-managed code.

599


What is connection pooling and how to enable and disable connection pooling?

486


Which is the best institute to learn Microsoft Technologies and the faculty if you Know?

1616






Explain form level validation and field level validation?

519


Explain the differences between clr & cts?

564


How ViewstateMac works?

2366


When Cookies are expired in ASP.NET?

579


How to create discussion forum in asp.net mvc? : Asp.Net MVC

533


What are the event handlers that can be included in the Global.asax file?

582


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1411


What is difference between abstract class and an interface?

505


Explain the difference between webfarm and webgardens in .net?

545


Explain authorization levels in .net ?

612