Snaju Inception Docs

Cookie

Class Cookie Object-oriented convenience wrapper class for handling cookies.

Table of Contents

exists()  : bool
Checks if a cookie exists.
get()  : string
Retrieves the delicious cookie value or returns an empty string.
getRaw()  : array<string|int, mixed>
Retrieves the raw cookie array.
remove()  : void
Removes a cookie
set()  : void
Sets a cookie.

Methods

exists()

Checks if a cookie exists.

public static exists( $name) : bool
Parameters
$name :
Return values
bool

get()

Retrieves the delicious cookie value or returns an empty string.

public static get( $name) : string
Parameters
$name :
Return values
string

getRaw()

Retrieves the raw cookie array.

public getRaw() : array<string|int, mixed>
Return values
array<string|int, mixed>

remove()

Removes a cookie

public static remove(string $name) : void
Parameters
$name : string
Return values
void

set()

Sets a cookie.

public static set(mixed ...$args) : void
Parameters
$args : mixed
Return values
void

Search results