ASP.NET State Management in appropriate situations -


ASP.NET 3.5 (as far as I know) there are 6 technologies to manage the states.

Can someone give me something for example:

  (*) session state: personalization, buy carts, etc. (*) Cookies: Saving user credentials, etc.  

state management options

view status:

when To store small amounts of information for that page Vshykta occurs, use the back will automatically post View state property provides functionality with basic security.

Control Status:

When you need to store small amounts of small information to control between the round trip from the server.

Hidden fields:

When you need to store small amounts of information for that page which will be posted back or another page, and when the security There is no problem.

You can only use the hidden fields on pages that are submitted to the server.

Cookies:

When the customer needs to store small information and security is not a problem.

query string:

Use it when you are moving small amounts of information from one page to another and security is not a problem.

> You can only use query strings if you are requesting the same page, or other pages through a link. Use the

server-side management option

application status

when you change occasionally, global information is used by many users, and There is no security problem, do not store large amounts of information in the event of the application.

Session State

Use when you store short-term information that is specific to a different session and security is a problem. Do not store large amounts of information in the event of a session Keep in mind that a session-state object will be created and maintained in your application for the lifetime of each session. In applications that host many users, this important server can capture resources and affect scalability.

Profile Properties

When you store user-specific information, the user's session has expired and your application needs to be restored again on next visit. is.

Database Support

When you are collecting large amounts of information, managing transactions, or saving the application for information and the session restarts. Data mining is a concern, and security is a problem.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -