\PhalApi_Cookie_Multi

PhalApi_Cookie_Multi 多级COOKIE

  • 使用crypt进行加解密
  • 带记忆功能,即设置后此时能获取

Summary

Methods
Properties
Constants
__construct()
get()
set()
delete()
getConfig()
No public properties found
No constants found
No protected methods found
$config
N/A
No private methods found
No private properties found
N/A

Properties

$config

$config : 

COOKIE configuration

Type

Methods

__construct()

__construct(  $config = array()) 

Parameters

$config

get()

get(string  $name = NULL) : \string/NULL/array

解密获取COOKIE

Parameters

string $name

COOKIE name

Returns

\string/NULL/array —

return the whole $_COOKIE when $name is NUL; return cookie value when exists, or NULL when not exists

set()

set(string  $name, \string/int  $value, integer  $expire = NULL) 

加密设置COOKIE&记忆功能

Parameters

string $name

COOKIE name

\string/int $value

COOKIE value, suggest to be some simple strings or number, not sensitive data

integer $expire

expire timestamp, expire in one MONTH when $expire is NULL

delete()

delete(\strint  $name) 

Delete COOKIE

Parameters

\strint $name

COOKIE name

getConfig()

getConfig() 

Get COOKIE config