登录页面判断session退出登录清空session
1
2
3
4
5
6
|
if ( empty ( $_POST )){ $_SESSION = array (); if (isset( $_COOKIE [session_name()])){ setcookie(session_name(), '' ,time()-1, '/' ); } } |
随笔写!
1
2
3
4
5
6
|
if ( empty ( $_POST )){ $_SESSION = array (); if (isset( $_COOKIE [session_name()])){ setcookie(session_name(), '' ,time()-1, '/' ); } } |
随笔写!