\ManaPHP\HttpCookiesInterface

Summary

Methods
Constants
set()
get()
has()
delete()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

set()

set(string  $name, mixed  $value, integer  $expire, string  $path = null, string  $domain = null, boolean  $secure = false, boolean  $httponly = true) : static

Sets a cookie to be sent at the end of the request

Parameters

string $name
mixed $value
integer $expire
string $path
string $domain
boolean $secure
boolean $httponly

Returns

static

get()

get(string  $name = null, string  $default = '') : mixed

Gets a cookie from the bag

Parameters

string $name
string $default

Returns

mixed

has()

has(string  $name) : boolean

Parameters

string $name

Returns

boolean

delete()

delete(string  $name, string  $path = null, string  $domain = null, boolean  $secure = false, boolean  $httponly = true) : boolean

Deletes a cookie by its name

Parameters

string $name
string $path
string $domain
boolean $secure
boolean $httponly

Returns

boolean