Programming Microsoft ASP.NET 4 - Dino Esposito [602]
Common Issues with View State
Encrypting and Securing
Machine Authentication Check
Size Thresholds and Page Throughput
Programming the View State
Disabling View State
Determining When to Disable View State
The Control State
Programming the Control State
Keeping the View State on the Server
Summary
18. ASP.NET Caching
Caching Application Data
The Cache Class
Fundamental Aspects of the Cache Object
Properties of the Cache Class
Methods of the Cache Class
An Interior View
Working with the ASP.NET Cache
Inserting New Items in the Cache
Removing Items from the Cache
Tracking Item Dependencies
Defining a Removal Callback
Setting the Item’s Priority
Controlling Data Expiration
Practical Issues
Should I Cache or Should I Fetch?
Building a Wrapper Cache Object
Clearing the Cache
Cache Synchronization
Per-Request Caching
Designing a Custom Dependency
Extensions to the CacheDependency Base Class
Getting Change Notifications
The AggregateCacheDependency Class
A Cache Dependency for XML Data
Designing the XmlDataCacheDependency Class
Implementing the Dependency
Testing the Custom Dependency
SQL Server Cache Dependency
Taking Advantage of SQL Server Dependencies
Distributed Cache
Features of a Distributed Cache
High Availability
Topology
Freshness of Data
Integration with the Data Access Layer
AppFabric Caching Services
Fast Facts
Architecture of Caching Services
Client-Side Configuration of Caching Services
Programming Caching Services
Other Solutions
Memcached
SharedCache
Commercial Solutions
Caching ASP.NET Pages
ASP.NET and the Browser Cache
Typical Behavior of the Browser Cache
Typical Behavior of an ASP.NET Page
Typical Behavior of Static Resources
Making ASP.NET Pages Cacheable
The @OutputCache Directive
Choosing a Location for the Page Output
Choosing a Duration for ASP.NET Page Output
IIS Kernel Caching
Adding a Database Dependency to Page Output
The HttpCachePolicy Class
Properties of the HttpCachePolicy Class
Methods of the HttpCachePolicy Class
Server Cache-Validation Callback
Caching Multiple Versions of a Page
Vary by Parameters
Dealing with Postback Pages
Vary by Headers
Vary by Custom Strings
Caching Portions of ASP.NET Pages
What’s a User Control, Anyway?
Caching the Output of User Controls
Vary by Controls
The Shared Attribute
Fragment Caching in Cacheable Pages
Advanced Caching Features
Caching Profiles
Post-Cache Substitution
Output Cache Providers
Summary
19. ASP.NET Security
Where the Threats Come From
The ASP.NET Security Context
Who Really Runs My ASP.NET Application?
IIS Thread Security Context
Worker Process Security Context
ASP.NET Pipeline Security Context
Changing the Identity of the ASP.NET Process
Setting the Process Account
Impersonating a Fixed Identity
Impersonating Through the Anonymous Account
Privileges of the ASP.NET Default Account
The Trust Level of ASP.NET Applications
The ASP.NET Permissions Granting Privileges Beyond the Trust Level ASP.NET Authentication Methods Windows Authentication Using ACLs to Authorize Access Windows CardSpace Using Forms Authentication Forms Authentication Control Flow Collecting Credentials Through Login Authenticating the User Signing Out The FormsAuthentication Class Properties of the FormsAuthentication Class Methods of the FormsAuthentication Class Configuration of Forms Authentication The Cookie-Based Forms Authentication Cookieless Forms Authentication Options for Cookieless Authentication Advanced Forms Authentication Features Applications