Duration: 16 minutes
Summary: In this video, we continue our discussion on cookies that we started in the previous video. So far, we know that we can use cookies to store small pieces of information because HTTP is a stateless protocol. But the, since by the cookies specification, we can have only 20 cookies per domain, we have the ability of creating multi-valued cookies. In other words we can have a multi-dimensional array where the first parameter is the same (name of the cookie), and the second parameter will be different so we can store many sub-values under the same cookie (as long as we do not exceed the 4096 bytes limit). Then will see how we can display all the cookies that we have in the Request.Cookies collection. Finally, we will see how we can delete a cookie.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, Cookies, Expire, DateTime, Cookies, AddDays, GridView, DataSource, ArrayList, Request, Add, DataBind, Count.