SessionState - type of sessionstate and when and how to use
it
Answer Posted / alb.shah
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
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 ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is true about application service provider?
How to find out what version of asp.net I am using on my machine?
What are the navigation ways between pages available in ASP.NET?
How to prevent client side validation from the ASP.NET validation controls?
Explain the difference between authentication and authorization.
How to use a Master Database in Asp.net?
what are the security certificates used in webservices?
What are the event handlers that can be included in the Global.asax file?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
what cut off mark for po's,what questions they asked for interview?
I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
when a request is made in Life cycle of ASP.NET page .
What are the three parts of an http response?
Can we override the enablepartialrendering property of the scriptmanager class?