How to print all session variables currently set?

后端 未结 7 2063
眼角桃花
眼角桃花 2020-12-12 18:56

Without having to call each session variable by name, is there a way to display the content of all the session variables currently set?

7条回答
  •  忘掉有多难
    2020-12-12 19:20

     PHP List All Session Variables";
        foreach ($_SESSION as $key=>$val)
        echo $key." ".$val."
    "; ?>

提交回复
热议问题