Showing
1 changed file
with
0 additions
and
1 deletions
| @@ -8,7 +8,6 @@ class Common extends Controller | @@ -8,7 +8,6 @@ class Common extends Controller | ||
| 8 | public function initialize() | 8 | public function initialize() |
| 9 | { | 9 | { |
| 10 | //判断管理员是否登录 | 10 | //判断管理员是否登录 |
| 11 | - $_SESSION['aid']=1; | ||
| 12 | if (!session('aid')) { | 11 | if (!session('aid')) { |
| 13 | $this->redirect('admin/login/index'); | 12 | $this->redirect('admin/login/index'); |
| 14 | } | 13 | } |
-
Please register or login to post a comment