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>';

?>

Useful VS Code Extensions / Packages

  Name What it does Why helpful for checking commits / trees GitLens Enhances built‑in Git support: inline blame, commit graph, file history...

Best for you