







![]() ![]() |
C# Webserver |
ResponseCookie Constructor (String, String, DateTime, String, String) |
ResponseCookie Class See Also Send Feedback |
Create a new cookie
Namespace:
HttpServer
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public ResponseCookie( string name, string value, DateTime expires, string path, string domain ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ name As String, _ value As String, _ expires As DateTime, _ path As String, _ domain As String _ ) |
Visual C++ |
---|
public: ResponseCookie( String^ name, String^ value, DateTime expires, String^ path, String^ domain ) |
Parameters
- name
- Type: System..::.String
name identifying the cookie
- value
- Type: System..::.String
cookie value
- expires
- Type: System..::.DateTime
when the cookie expires. Setting DateTime.MinValue will delete the cookie when the session is closed.
- path
- Type: System..::.String
Path to where the cookie is valid
- domain
- Type: System..::.String
Domain that the cookie is valid for.