asp.net.ph

HttpCookie Constructor

System.Web Namespace   HttpCookie Class


Initializes a new instance of the HttpCookie class.

Overload List

1. Creates and names a new cookie.

2. Creates, names, and assigns a value to a new cookie.


Example

The following example creates, names, and sets the value of a new cookie.

NOTE: This example shows how to use one of the overloaded versions of the HttpCookie constructor. For other examples that might be available, see the individual overload topics.

[ VB ]
Dim myCookie As New HttpCookie ( "LastVisit", CStr ( DateTime.Now ( ) ) )

[ C# ]
HttpCookie myCookie = new HttpCookie ( "LastVisit", DateTime.Now.ToString ( ) );
See Also

HttpCookie 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