我的使用:
window.location.replace("calendar.php");
似乎根本无法使用我的 PHP 会话变量。当我使用这个调用时,我的代码不能使用后退按钮:
<?php
  session_start();
  if($_SESSION['loggedin'] != TRUE) {
    header("Location: index.php");
  }
?>
有谁知道为什么会这样?谢谢。
我的使用:
window.location.replace("calendar.php");
似乎根本无法使用我的 PHP 会话变量。当我使用这个调用时,我的代码不能使用后退按钮:
<?php
  session_start();
  if($_SESSION['loggedin'] != TRUE) {
    header("Location: index.php");
  }
?>
有谁知道为什么会这样?谢谢。