PHP code example of joem / simple-session

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

    

joem / simple-session example snippets


session_start();

rname'); // false

session_set('username', 'joe');

session_has('username'); // true

session_get('username'); // 'joe'