PHP code example of t4web / session

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

    

t4web / session example snippets


'modules' => [
    // ...
    'T4web\Session',
    // ...
],

'session' => [
    'config' => [
        'options' => [
            'gc_maxlifetime' => 86400,
        ],
    ],
    'save_handler' => T4web\Session\SaveHandler\DbTableGateway::class,
    'save_handler_options' => [
        'db_table' => [
            'table' => 'sessions'
        ],
    ],
],