| Session | | Cache | Application |
Modes | In-Proc, State Server, SQL Server | - | Page Output Cache, Fragment Cache, Data Cache, Data Source Cache | - |
Dependency | Cookie – if not a cookie less to store Session ID. e.g. ASP.NET_SessionId cookie gets created. Cookie less – URL append with Session Id. | | SQL Cache Dependencies, File, Query String Key | |
Storage Location | Data is stored in memory (in process), Web Server. | Page (but can be modified to overwrite the storage mechanism to
| Data is stored in memory (in process), Web Server | Data is stored in memory (in process), Web Server |
Can Store | Complex Objects & Any Data e.g. DataSet | Any serializable class to | Page Output, Complex Object (e.g. DataSet), | |
Note | | Anything that you add to | Application state is little used in ASP.NET applications. In most cases, you should use the Cache object instead of Application state because the Cache object is designed to manage memory automatically. | |
Thanks,
Paresh Bhole
No comments:
Post a Comment