How to destroy one session and all session?

How to destroy one session and all session?

Team Leader Asked on February 11, 2017 in PHP.
Add Comment
1 Answer(s)

You can use unset() to destroy one session like USERNAME

unset($_SESSION[‘USERNAME’]);

 

session_destroy();
your whole session values are destroyed.

IT Head Answered on June 29, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.