PHP Class Cml\Http\Session

Show file Open project: linhecheng/cmlphp

Public Properties

Property Type Description
$prefix string session的前缀

Public Methods

Method Description
clear ( ) : void Session-清空session
delete ( string $key ) : string 删除session值
get ( string $key ) : string 获取session值
set ( string $key, string $value = '' ) : string 设置session值

Method Details

clear() public static method

Session-清空session
public static clear ( ) : void
return void

delete() public static method

删除session值
public static delete ( string $key ) : string
$key string 要删除的session的key
return string

get() public static method

获取session值
public static get ( string $key ) : string
$key string 要获取的session的key
return string

set() public static method

设置session值
public static set ( string $key, string $value = '' ) : string
$key string 可以为单个key值,也可以为数组
$value string value值
return string

Property Details

$prefix public static property

session的前缀
public static string $prefix
return string