PHP code example of jemer / session

1. Go to this page and download the library: Download jemer/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/ */

    

jemer / session example snippets


composer 


use Jemer\Session\SessionManager;

SessionManager::Instance()->Start([
                    "username" => "Bob",
                    "role" => "manager",
                    "yearsOfService" => 15
                ]);
                

echo SessionManager::Instance()->Get("username");

returns: Bob