Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php after leave page

$_SESSION['previous'] = basename($_SERVER['PHP_SELF']);

if (isset($_SESSION['previous'])) {
   if (basename($_SERVER['PHP_SELF']) != $_SESSION['previous']) {
        session_destroy();
        ### or alternatively, you can use this for specific variables:
        ### unset($_SESSION['varname']);
   }
}
Comment

PREVIOUS NEXT
Code Example
Php :: validar tipo de imagen php 
Php :: pregmatch php only numbers and comma and dot 
Php :: wc php product_cat thumbnail 
Php :: storefront remove sidebar from product page 
Php :: php reload after env 
Php :: laravel_login1 
Php :: Schema::defaultStringLength(199); 
Php :: Use external variable in array_filter 
Php :: post is empty php api 
Php :: wpdb get column 
Php :: acf get all checkbox options 
Php :: foreach tableau php 
Php :: how to back the page laravel where the scorll is 
Php :: laravel OrderBy on Eloquent whereHas relationship 
Php :: recursive directory only listing php 
Php :: find in associative array php by property value 
Php :: sql query show table phpmyadmin 
Php :: required_unless laravel 
Php :: Laravel htaccess for aws ec2 
Php :: php inverse / arc cosine 
Php :: 0 
Php :: Laravel Unique Multiple Column validation 
Php :: laravel add many to many 
Php :: Laravel Google Line Chart 
Php :: drupal form show description 
Php :: dynamic function name php 
Php :: create qr code png image of 200*200 using phpqrcode 
Php :: session in laravel 
Php :: laravel pluck multiple columns 
Php :: wordpress run php code in page 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =