登入也設置cookiecookie
setcookie('user_id', authlogin("user_id", "ENCODE"), time()+(3600*24*30), "/", ".lfb365.com");編碼
authlogin()方法爲將user_id進行編碼,非內置方法方法
退出頁清除cookieim
setcookie("user_id", "", time()-3600, "/", ".lfb365.com");auth