How to clear session in PHP Simple way

 You can clear _SESSION 


<?php

        session_start(); 

          session_destroy();

        $_SESSION = [];

echo '<h1>You have been successfully remove session</h1>';

?>

Advanced Angular Methods & Real-World Scenarios

  1.  ViewChild  /  ViewChildren Purpose : Access DOM elements or child components programmatically. Scenario : Video player controls in a m...

Best for you