PHP code example of pajaeu / session

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

    

pajaeu / session example snippets


Session::start();

Session::set('key', 'value');

$value = Session::get('key');

$check = Session::has('key');

Session::remove('key');

$id = Session::id();

Session::regenerate();

Session::clear();

Flash::set('success', 'message');

$flashes = Flash::get();