asp.net.ph

HttpCookieCollection.Set Method

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
);

Parameters

cookie
The HttpCookie object to update.

Example

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 );
See Also

HttpCookieCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 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