Search
 
SCRIPT & CODE EXAMPLE
 

PHP

end session variable php

// destroy the session
<?php
session_destroy();
?>
Comment

php end session

<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
session_start();

// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
    $params = session_get_cookie_params();
    setcookie(session_name(), '', time() - 42000,
        $params["path"], $params["domain"],
        $params["secure"], $params["httponly"]
    );
}

// Finally, destroy the session.
session_destroy();
?>
Comment

PREVIOUS NEXT
Code Example
Php :: static modal 
Php :: how to use plugin shortcode in wordpress template 
Php :: livewire not working 
Php :: wordpress get post type 
Php :: laravel db ssh 
Php :: laravel curl package 
Php :: how to validate video laravel 
Php :: erreur php 
Php :: laravel group by with where clause 
Php :: Fatal error: Allowed memory size of 1610612736 bytes exhausted but already allocated 1.75G 
Php :: php check session status 
Php :: laravel log build 
Php :: laravel middleware route 
Php :: eloquent with select 
Php :: remove product from cart by id woocommerce 
Php :: nova laravel image 
Php :: laravel findorfail 
Php :: php exponential operator 
Php :: php binary to base64 
Php :: laravel pass variables to view 
Php :: php if else 
Php :: laravel eloquent mass update 
Php :: how to retrieve image from database in php mysqli 
Php :: how make custom menu in wordpress 
Php :: php file extension 
Php :: laravel append 
Php :: pdo close connection 
Php :: laravel validation greater than or equal to 
Php :: générer des nombres aléatoires décimaux en php 
Php :: php echo new line terminal 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =