CookieValuePrefix
in package
Table of Contents
- create() : string
- Create a new cookie value prefix for the given cookie name.
- getVerifiedValue() : string|null
- Verify the provided cookie's value.
- remove() : string
- Remove the cookie value prefix.
Methods
create()
Create a new cookie value prefix for the given cookie name.
public
static create(string $cookieName, string $key) : string
Parameters
- $cookieName : string
- $key : string
Return values
string —getVerifiedValue()
Verify the provided cookie's value.
public
static getVerifiedValue(string $name, string $value, string $key) : string|null
Parameters
- $name : string
- $value : string
- $key : string
Return values
string|null —remove()
Remove the cookie value prefix.
public
static remove(string $cookieValue) : string
Parameters
- $cookieValue : string