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
Where web.config file is used?
What are the elements of a website?
Which is the parent class of the web server control?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
What is a session government?
In early binding will the method invoked on com component will verify it?s existance in the system or not ?
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
Is it right that ASP.NET Web API has replaced WCF?
Explain the advantages of caching?
What is the best Macanism to clear the Cache in asp.net
Explain the difference between overriding and overloading?
What is a web farm?
Explain the difference between value type and reference type?
How do you declare static variable? What is its lifetime?
Explain the use of fragment caching.