PHP code example of ellipse / session-start
1. Go to this page and download the library: Download ellipse/session-start 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/ */
ellipse / session-start example snippets
namespace App;
use Ellipse\Session\StartSessionMiddleware;
// All middleware processed after this one will have acces to the $_SESSION data.
// The session cookie name will by 'my_session_cookie'. See above for other options.
$middleware = new StartSessionMiddleware([
'name' => 'my_session_cookie',
]);