2016-09-06 8 views

答えて

0

私はそれを自分で解決し、

私が使用した方法が好きではないが、それは動作します。

誰かが推薦をいただければ、私は満足しています。

header('Location: index.php');

の私が書くためだったこと

if($_SESSION['last_activity'] < time()-$_SESSION['expire_time']) { 
    session_unset(); 
    session_destroy(); 
    //header('Location: index.php'); 
    echo "Session expired click <a href=\"index.php\">here</a> for going in login page."; 
    exit(0); 

    //Go to first page 
} 
関連する問題