Q. Which of the following is used to destroy a session in PHP?

  • (A) session_destroy()
  • (B) end_session()
  • (C) delete_session()
  • (D) destroy()
πŸ’¬ Discuss
βœ… Correct Answer: (A) session_destroy()
Explanation: session_destroy() is used to end a session and delete session data.
Explanation by: Mr. Dubey
session_destroy() is used to end a session and delete session data.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
104
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate