Allow arbitrary parameters to be added to the cookie in order to be able
to set the “SameSite=None” parameter that will be required by CORS.
```php
// session options
$sessopts = array();
// Add 'SameSite=None' but exclude WebKit
// see https://bugs.webkit.org/show_bug.cgi?id=198181
if (empty($_SERVER['HTTP_USER_AGENT']) || !preg_match('/(?:(?:iPhone
OS|iPad; CPU OS) 1[0-2]|Mac OS X.*Version\/1[0-2].*Safari)/',
$_SERVER['HTTP_USER_AGENT'])) {
$sessopts['cookieParams'] = array('SameSite' => 'None');
}
// elFinder options
$opts = array(
'roots' => array(
array(
'driver' => 'LocalFileSystem',
'path' => '/path/to/files/',
'URL' => 'http://localhost/to/files/',
'session' => new elFinderSession($sessopts)
)
)
);
// run elFinder
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();
```