PHP cleanup and destruction Session method analysis, PHP clear destroy session
This paper analyzes the method of removing and destroying the session in PHP. Share to everyone for your reference. The specific analysis is as follows:
The following code deletes a single session value and all sessions for each user
Unset () is used to release an already existing session value. You can use the Session_destroy () function to destroy all sessions.
<?phpunset ($_session[' views ');? >
Destroy All session
<?phpsession_start ();//...session_destroy ();? >
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/970859.html www.bkjia.com true http://www.bkjia.com/PHPjc/970859.html techarticle PHP removal and destruction of the session of the method analysis, PHP removal of the session This article analyzed the PHP removal and destruction of the session method. Share to everyone for your reference. The specific analysis is as follows: ...