Table of Contents

Class CookieHelper

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

Provides a class that contains useful methods for working with cookies in HTTP responses.

public abstract class CookieHelper
Inheritance
CookieHelper
Derived
Inherited Members

Constructors

CookieHelper()

Methods

BuildCookieHeaderValue(Cookie)

Builds the cookie header value and returns an string from it.

BuildCookieHeaderValue(string, string, DateTime?, TimeSpan?, string?, string?, bool?, bool?, string?)

Builds the cookie header value and returns an string from it.

SetCookie(Cookie)

Sets a cookie and sends it in the response to be set by the client.

SetCookie(string, string)

Sets a cookie and sends it in the response to be set by the client.

SetCookie(string, string, DateTime?, TimeSpan?, string?, string?, bool?, bool?, string?)

Sets a cookie and sends it in the response to be set by the client.

SetCookieHeader(string, string)

Abstract method that calls the "Set-Cookie" header with the value of the created cookie.