Answers for "reset session php"

PHP
3

php delete session

session_destroy(); // To delete whole session
// OR
unset($_SESSION['myVar']); // To delete a session var
Posted by: Guest on January-24-2020
3

clear session php

<?php
   unset($_SESSION['counter']);
?>
Posted by: Guest on June-30-2020
-2

php clear session

<?php
session_destroy();
?>
Posted by: Guest on March-08-2020

Browse Popular Code Answers by Language