Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php unset session variable

// Destroy a sesion variable name 'variable_name' 
<?php
unset($_SESSION['variable_name']);
?>
Comment

unset session in php

session_unset();    //Destrol all session variables
Comment

learn difference between session unset and session destroy

session unset: unset($_SESSION['id']);	//remove perticular session variable
session destroy: session_destroy();		//remove all session variable
Comment

PREVIOUS NEXT
Code Example
Php :: how to remove notice error in php 
Php :: PHP Warning: require(/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/api-fase/bootstrap/autoload.php on line 17 
Php :: add a year php 
Php :: array_sum in multidimensional array php 
Php :: php make query string from array http_build_query 
Php :: php has been blocked by CORS policy 
Php :: php check whether the url is http or https 
Php :: laravel turn off timestamps 
Php :: download php7.4-mbstring ubuntu 
Php :: composer stripe 
Php :: how to install bootstrap in laravel 
Php :: remove http / https from link php 
Php :: laravel env pgsql 
Php :: laravel check if laravel query is empty 
Php :: Disable update notification for individual plugins 
Php :: laravel hash::check 
Php :: get parent page link wordpress 
Php :: laravel validate telephone number 
Php :: foreign id laravel migration 
Php :: remove phpmyadmin ubuntu 20.04 completely 
Php :: laravel db seed specific class 
Php :: install php 7.3 on amazon linux 2 
Php :: php remove execution time limit 
Php :: how get file size in laravel 
Php :: magento 2 get connection 
Php :: laravel convert datetime to date 
Php :: diffforhumans laravel 
Php :: laravel 8 bootstrap pagination fix 
Php :: wordpress logout to home page 
Php :: flutter form set next input 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =