2_State Management
2_State Management
Disadvantages
1. Performance
2. Limited storage structure
Disadvantages
Size Limitations
Cookies can be disable on user browsers
Cookies are transmitted for each HTTP request/response causing overhead on
bandwidth.
Inappropriate for sensitive data
There can be implemented three level of caching concepts in ASP.NET application which are given
below:-
Page Output Caching : It enables you to cache the contents of an entire dynamically generated page
on your server. You can cache a page for an absolute period of time or implement a sliding expiration
policy.
Data caching : You can use data caching to cache Datasets and other types of data. After the data is
cached, you can use the same data in multiple ASP.NET pages.
Page fragment caching : It enables you to cache particular areas of a page. For example, you can use
page fragment caching to cache a page's menu bar, but not a list of current stock prices.
InProc mode, which stores session state in memory on the Web server in same
state service
SQLServer mode stores session state in a SQL Server database
Step 2: Now open the Services Management Window and right-click on ASP.NET State
Service and start the service; by default these services are stopped
For using StateServer, the object which we are going to store should be serialized, and at
the time of retrieving, we need to de-serialize it back
[check <netstat –aon> command for tcpip address]