Destroy PHP Session on closing

前端 未结 5 1670
一生所求
一生所求 2020-11-27 06:35

I have created a simple login page which is based on the sessions.

session_start();

and added a logout page that contains this



        
5条回答
  •  日久生厌
    2020-11-27 07:18

    to remove session variables - session_unset();

    to destroy the session - session_destroy();

    session_unset();
    session_destroy();
    

提交回复
热议问题