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
What is asp.net mvc5? : Asp.Net MVC
Difference between application events and session events
Give some salient points of difference between request processor and request dispatcher.
Explain a program using code nuggets to create a simple application? : asp.net mvc
Is it possible to migrate visual interdev design-time controls to asp.net?
What is ashx file in asp.net?
What is view state management in asp net?
What are the differences between primary foreign and unique keys?
What is ASLM?
Do session use cookies in asp net?
Is viewstate enabled by default?
What is recordset asp?
What is microsoft windows sharepoint services?
What is the viewstate in asp.net?
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?