摘要: 使用CommonAction.class.php公共类,统一判断用户是否登录 1 redirect('Admin/Login/index'); 9 }10 //获取session值11 if(!C('SESSION_PREFIX')){12 ... 阅读全文
posted @ 2015-01-31 22:18 安迪9468 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 1.创建Session1 public function index(){2 $sess_time=time();3 session('name','andy');4 session('time_stamp',$sess_time);5 ... 阅读全文
posted @ 2015-01-31 21:21 安迪9468 阅读(3418) 评论(0) 推荐(0) 编辑
摘要: 如何设置一个严格30分钟过期的Session 阅读全文
posted @ 2015-01-31 19:56 安迪9468 阅读(175) 评论(0) 推荐(0) 编辑