Here you'll get all the code snippets used in the article State Management in ASP.NET