Clear
in package
Uses
UtilsProvider
Clear server-side cookies like `http` cookies.
Table of Contents
Properties
Methods
- byCookies() : mixed
- Clear cookies by cookie ids.
- byHttpCookieName() : mixed
- Unset a cookie from the same host by name.
- byTechnicalDefinition() : mixed
- Clear a cookie by technical definition.
- getInstance() : mixed
- Get singleton instance.
- getPluginConstantPrefix() : string
- Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
- __construct() : mixed
- C'tor.
Properties
$me
Singleton instance.
private
static Clear
$me
= null
Methods
byCookies()
Clear cookies by cookie ids.
public
byCookies(array<string|int, int> $cookies) : mixed
Parameters
- $cookies : array<string|int, int>
byHttpCookieName()
Unset a cookie from the same host by name.
public
byHttpCookieName(string $name, string $host) : mixed
Parameters
- $name : string
- $host : string
Tags
byTechnicalDefinition()
Clear a cookie by technical definition.
public
byTechnicalDefinition(array<string|int, mixed> $technicalDefinition) : mixed
Parameters
- $technicalDefinition : array<string|int, mixed>
getInstance()
Get singleton instance.
public
static getInstance() : mixed
Tags
getPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
string__construct()
C'tor.
private
__construct() : mixed