To read and write cookie is very easy, the above code to create a cookie and to give cookie settings attributes: domain, expiration time, and other values stored in the cookie. Here, strUsername, strPassword set anywhere in front of the variable.
Code:
String datExpDate = Request.Cookies ( "MyCookie123")
String strDomaln = Request.Cookies ( "MyCookle123"). Domain
String strUsername = Request.Cookies ( "MyCookle123") ( "Username123")
String strPassword = Request.Cookies ( "MyCookie123") ( "Password123")
Bookmarks