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
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph