Close session and start a new one

前端 未结 4 1521
小蘑菇
小蘑菇 2020-12-17 17:09

I\'m testing the implementation of a security check in my PHP sessions. I can successfuly detect whether the session was started from another IP address and I can successful

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 17:21

    Use this

    unset($_SESSION['ip_address'])
    

    instead of 'unset($_session)' You can also use session_destroy.

提交回复
热议问题