設定過期時間參數, 主要是設定session.gc_maxlifetime 的參數即可, 再保險一點的設定, ... setcookie('PHPSESSID', session_id(), time() + $expire); }
確定! 回上一頁