how to logout from a php session - session_destroy doesn't seem to be enough

后端 未结 6 736
囚心锁ツ
囚心锁ツ 2021-01-15 19:01

I\'m trying to learn PHP and using sessions. I seen examples about using session_destroy on logout, but I see this in the php documentation:

In order

6条回答
  •  一向
    一向 (楼主)
    2021-01-15 19:29

    There's, like, an example answering your question just below the paragraph you just quoted: http://php.net/manual/en/function.session-destroy.php

    Example #1 Destroying a session with $_SESSION

    
    

提交回复
热议问题