| 
            
              SessionHandlerSetCookie Method
             | 
          
        
        
            Gets the session state as defined in the request cookie header values.
            
        
        Namespace: GSF.Web.SecurityAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.257-beta
Syntaxpublic static void SetCookie(
	HttpRequestMessage request,
	HttpResponseMessage response,
	string key,
	string value,
	string path = "/",
	TimeSpan? maxAge = null
)
Public Shared Sub SetCookie ( 
	request As HttpRequestMessage,
	response As HttpResponseMessage,
	key As String,
	value As String,
	Optional path As String = "/",
	Optional maxAge As TimeSpan? = Nothing
)
public:
static void SetCookie(
	HttpRequestMessage^ request, 
	HttpResponseMessage^ response, 
	String^ key, 
	String^ value, 
	String^ path = L"/", 
	Nullable<TimeSpan> maxAge = nullptr
)
static member SetCookie : 
        request : HttpRequestMessage * 
        response : HttpResponseMessage * 
        key : string * 
        value : string * 
        ?path : string * 
        ?maxAge : Nullable<TimeSpan> 
(* Defaults:
        let _path = defaultArg path "/"
        let _maxAge = defaultArg maxAge null
*)
-> unit GSF.Web.Security.SessionHandler.SetCookie = function(request, response, key, value, path, maxAge);
 View SourceParameters
- request  HttpRequestMessage
 - Request message.
 - response  HttpResponseMessage
 - Response message.
 - key  String
 - Cookie key.
 - value  String
 - Cookie value.
 - path  String  (Optional)
 - Cookie path.
 - maxAge  NullableTimeSpan  (Optional)
 - Cookie max age.
 
See Also