|
发表于 2010-3-20 12:05:30
|
显示全部楼层
PHP复制代码
function test_ci_session (){
$array = array(
'user_id'=>888,
'user_name'=>'alex',
'user_sex'=>1
);
$this->session->set_userdata($array);
echo '## session array is:';
print_r($this->session->userdata);
//销毁自带session
$this->session->unset_userdata('user_agent');
print_r($this->session->userdata);
}
复制代码 |
|