MCQs > IT & Programming > PHP > Suppose after successful login following values are stored in session as per the given code:- session_start(); $_SESSION['logged'] = 1; $_SESSION['id'] = $id; $_SESSION['name'] = $contact_name; $_SESSION['email'] = $email; Now how will you remove the email value from the session?

PHP MCQs

Suppose after successful login following values are stored in session as per the given code:- session_start(); $_SESSION['logged'] = 1; $_SESSION['id'] = $id; $_SESSION['name'] = $contact_name; $_SESSION['email'] = $email; Now how will you remove the email value from the session?

Answer

Correct Answer: unset($_SESSION['email'])

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it