获取后删除相应KEY的SESSION数据
mixed Module_Session::get_once( string $key [, mixed $default = bool false ] )
参数列表
参数 类型 描述 默认值 $key
string
Variable key $default
mixed
Default value returned if variable does not exist bool false
mixed
357358359360361362363public
function
get_once(
$key
,
$default
= false)
{
$return
=
$this
->get(
$key
,
$default
);
$this
->
delete
(
$key
);
return
$return
;
}