Keshav 11 Questions 0 Answers 0 Best Answers 20 Points View Profile 0 Keshav Asked: April 17, 2020In: PHP How to destroy only specific data from a php session? 0 How to destroy only specific data from a php session? php Share Facebook 1 Answer Voted Oldest Recent Mohd Tariq United Arab Emirates 0 Questions 10 Answers 0 Best Answers 40 Points View Profile tariq Added an answer on April 28, 2020 at 5:59 am session_destroy() destroys all the data for a specific session. If you want to destroy only specific data from a session then you can use unset() function of php which simply unset any key from an array and $_SESSION is also an array. 0 Reply Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp Sorry, you do not have a permission to answer to this question.