To start a session in PHP, use the session_start() function at the beginning of your PHP script. This function initializes a session or resumes the current one if it already exists. <?php. session_start(); // Session started. ?> Destroying Complete Session. The session_destroy () function is used to destroy a session.