PHP code example of foa / auth-session-bundle

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

    

foa / auth-session-bundle example snippets


$session_factory = new \FOA\Auth_Session_Bundle\SessionFactory();
$session = $session_factory->newInstance($_COOKIE);
$segment = new \FOA\Auth_Session_Bundle\Segment($session, 'Aura\Auth\Session');
$auth_factory = new \Aura\Auth\AuthFactory($_COOKIE, $session, $segment);