Click or drag to resize

SessionHandlerSetCookie Method

Gets the session state as defined in the request cookie header values.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public static void SetCookie(
	HttpRequestMessage request,
	HttpResponseMessage response,
	string key,
	string value,
	string path = "/",
	TimeSpan? maxAge = null
)
View Source

Parameters

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