Answers for "php remove session variable"

PHP
6

php unset session variable

// Destroy a sesion variable name 'variable_name' 
<?php
unset($_SESSION['variable_name']);
?>
Posted by: Guest on April-25-2020
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

unset session in php

session_unset();    //Destrol all session variables
Posted by: Guest on December-04-2020
1

php session destroy

<?php
// Destroy the currently active session.
session_destroy();
?>
Posted by: Guest on April-14-2020
-2

php clear session

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

linux delete php sessions

rm -fr  /var/lib/php/sessions/*
Posted by: Guest on August-11-2020

Browse Popular Code Answers by Language