Simple test to check if browser accepts cookies or not in asp .net. You will learn how to check whether cookies are enabled in browser or not.If your website functionality relies on cookies it is better to check whether cookies are enabled or disabled in web browser and prompt users if cookies are disabled from web browser.
In this asp .net tutorial we will learn how to read and display all cookies created by website. We have learned how to write and read single value cookies and how to write and read cookies with more than one value in asp .net. Now at some point it might be required to check values of all the cookies created by website for testing or any other purpose.
In this asp .net tutorial we will learn how to Encrypt and Decrypt cookie values. Cookies are small text files to hold values within browser. As cookies are stored in a plain text file it is very easy to read and modify content of the cookies. However you can encrypt and decrypt cookies to provide some security. For this tutorial we will use MachineKey.Protect” and “MachineKey.Unrotect” methods for encryption and decryption. These are the inbuilt methods used to Encrypt and Decrypt data in asp .net.
Cookies with multiple values tutorial in asp .net. In this asp .net tutorial we will learn how to write,read and delete cookies with multiple values. Multiple values are stored in the form of name-value pairs in a single cookie.
In this asp .net tutorial we will learn how to use cookies in asp .net. We will learn how to write cookies, read cookies value and delete cookies in asp .net. You can download attached sample code.