PHP code example of yakeing / php_session

1. Go to this page and download the library: Download yakeing/php_session library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yakeing / php_session example snippets


    $expire = 180;  //Default server 180 minutes client end
    $id = md5('uid'); //user ID, Default automatic generation
    $name = "PHPSESSID";
    $limiter = "private";
    $handler = null;
    $session = new session($expire, $id, $name, $limiter, $handler);

    $name = 'admin';
    $value = 'pass';
    $session->Set($name, $value); //Set up a session Value
    $session->Get($name); //Get a session Value
    $session->Delete($name); //Write off a session Value
    $session->Unset(); //End all session Value
    $session->Destroy(); //End all session Value


    $ composer