In PHP, the session_start() function is used to start a new session. However, it can also resume an existing session if it is stopped. In this case, the return will be the current session if resumed.
Syntax:
session_start();
The session_destroy() function is mostly used to destroy all of the session variables as shown below: