To destroy a session in PHP, you can use the session_destroy() ______.

  • function
  • method
  • statement
  • command
To destroy a session in PHP, you can use the session_destroy() function. This function is called as a statement to remove all session data and end the current session. It effectively destroys the session. It's important to note that session_destroy() alone may not unset all session variables, so you may also need to call session_unset() to unset all session variables before calling session_destroy(). Learn more: http://php.net/manual/en/function.session-destroy.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *