Tag Archives: State Management

Get list of all active session variables in ASP.NET

By | May 29, 2011

In this post I am going to discuss about  how you can get list of all active Session Variables in ASP.NET Application. The easiest way to get the details of session variable is using “Tracing” . If you enable the “Tracing” for your application, you can get list of all  Active Session variables. Another alternative way is, get… Read More »

Few important tips that you should know while using ASP.NET Session

By | May 3, 2011

While working with ASP.NET web application you must be familiar with one of most important state management technique “Session”. If you want to do a quick refresh or want to know some thing more, please go ahead and read one of my article “Exploring Session in ASP.NET” published at Code Project. In this post I am going to… Read More »

How EnableViewStateMAC Makes ViewState Secure ?

By | February 24, 2011

The ASP.NET ViewState is a client side state management mechanism. The ViewState is stored in a hidden field with an ID __VIEWSTATE. Typically, stored ViewState information looks like: ViewState value looks likes an encrypted string. This is nothing but a Base64 encoded string, and is not an encrypted string. So it can be easily decoded. The main reasons… Read More »

How to remove a persistent cookies before Expiration time ?

By | February 4, 2011

Cookies are the small pieces of information that are stored in client system or browser memory and helped as client site state management for an web based application. Generally we can have two types of cookies  Persistent Cookies Non Persistent Cookies Persistent Cookies : also known as  permanent cookies, which is stored in client hard-drive until it expires .… Read More »

How to calculate Session data size for SQL Server session mode?

By | December 27, 2010

SQL Server use ASPState database to store the session information for SQL Server Session mode. ASPState database having two tables ASPStateTempApplications and ASPStateTempSessions. ASPStateTempApplications  table contains Application ID and Application Name which is specific to each and every application which are using SQL Server session mode on the particular database. ASPStateTempSessions table having numbers of fields to store… Read More »