PHP code example of tobias / zend-expressive-session-zf1

1. Go to this page and download the library: Download tobias/zend-expressive-session-zf1 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/ */

    

tobias / zend-expressive-session-zf1 example snippets


$aggregator = new ConfigAggregator(
    [
        // ...
        
        \Zend\Expressive\Session\ConfigProvider::class,
        \Tobias\Zend\Expressive\Zf1Session\ConfigProvider::class,

        // ...
    ]);


return [
    'session' => [
        'use_cookies' => false,
        'use_only_cookies' => true,
    ]
];