\LtCookie

Summary

Methods
Properties
Constants
__construct()
init()
delCookie()
getCookie()
setCookie()
$configHandle
No constants found
decrypt()
encrypt()
No protected properties found
N/A
No private methods found
$secretKey
N/A

Properties

$configHandle

$configHandle

$secretKey

$secretKey

Methods

__construct()

__construct() : mixed

Returns

mixed —

init()

init() : mixed

Returns

mixed —

delCookie()

delCookie(mixed  $name, mixed  $path = '/', mixed  $domain = null) : bool

Set cookie value to deleted with $name

Parameters

mixed $name
mixed $path
mixed $domain

Returns

bool —

getCookie()

getCookie(string  $name) : mixed

Get cookie value with $name

Parameters

string $name

Returns

mixed —

setCookie()

setCookie(mixed  $name, mixed  $value = '', mixed  $expire = null, mixed  $path = '/', mixed  $domain = null, mixed  $secure) : bool

Set cookie

Parameters

mixed $name
mixed $value
mixed $expire
mixed $path
mixed $domain
mixed $secure

Returns

bool —

decrypt()

decrypt(string  $encryptedText) : string

Decrypt the encrypted cookie

Parameters

string $encryptedText

Returns

string —

encrypt()

encrypt(string  $plainText) : string

Encrypt the cookie

Parameters

string $plainText

Returns

string —