System.Web Namespace HttpCookieCollection Class
Updates the value of an existing cookie in a cookie collection.
[ VB ] Public Sub Set ( _ ByVal cookie As HttpCookie _ ) [ C# ] public void Set ( HttpCookie cookie ); [ C++ ] public: void Set ( HttpCookie* cookie ); [ JScript ] public function Set ( cookie : HttpCookie );
The following example updates the value of an existing cookie.
[ VB ] myCookie.Value = DateTime.Now ( ).ToString ( ) myCookieCollection.Set ( myCookie ) [ C# ] myCookie.Value = DateTime.Now.ToString ( ); myCookieCollection.Set ( myCookie );
HttpCookieCollection Members
Check out related books at Amazon
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved. If you have any question, comment or suggestion about this site, please send us a note