\Alo\StaticsCookie

Cookie handler

Summary

Methods
Properties
Constants
set()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

set()

set(string  $name, string  $value, integer|boolean  $expire, string  $path = '/', string  $domain = '', boolean  $secure = false, boolean  $httponly = true) : boolean

Wrapper for PHP's setcookie with

Parameters

string $name

Cookie name

string $value

Cookie value

integer|boolean $expire

False if deleting a cookie, 0 for session-length cookie, expiration time in seconds otherwise

string $path

The path the cookie will be available at

string $domain

The domain the cookie will be available at

boolean $secure

Whether to only transfer the cookie via HTTPS.

boolean $httponly

Whether to only allow server-side usage of the cookie

Returns

boolean

delete()

delete(string  $name) : boolean

Deletes a cookie

Parameters

string $name

Cookie name

Returns

boolean