CookieExtensions

Namespace: ASPSecurityKit.NetFramework.Mvc
Assembly: ASPSecurityKit.NetFramework.Mvc.dll

Summary

Provides extension methods for cookies.

Methods

Summary

Converts the specified cookie instance into HttpCookie.

Returns

A HttpCookie instance if the provided cookie is not null; otherwise, null.

Parameters
Name Type Description
cookie System.Net.Cookie The cookie.

ToCookie(httpCookie)

Summary

Converts the specified http cookie instance into Cookie.

Returns

A Cookie instance if the provided http cookie is not null; otherwise, null.

Parameters
Name Type Description
httpCookie System.Web.HttpCookie The http cookie.