How to print all session variables currently set?

后端 未结 7 2062
眼角桃花
眼角桃花 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:26

    You could use the following code.

    print_r($_SESSION);
    

提交回复
热议问题