Can a user modify a PHP session?

前端 未结 3 1077
你的背包
你的背包 2021-01-12 06:36

Page1.php:

Page2.php

3条回答
  •  情书的邮戳
    2021-01-12 06:56

    The session can only be modified from the PHP code, it's unlike $_POST, $_GET, $_COOKIE etc

    As an aside I think you can use empty() to simplify your conditional:

    
    

提交回复
热议问题