mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:50:17 +00:00
Refactor Session Handling (make it more simple & handler are now handler again)
This commit is contained in:
parent
02c40ad1cb
commit
1408908c84
11 changed files with 143 additions and 140 deletions
|
@ -32,13 +32,13 @@ class Cookie
|
|||
/** @var array The $_COOKIE array */
|
||||
private $cookie;
|
||||
|
||||
public function __construct(Configuration $config, array $server = [], array $cookie = [])
|
||||
public function __construct(Configuration $config, App\BaseURL $baseURL, array $server = [], array $cookie = [])
|
||||
{
|
||||
if (!empty($server['REMOTE_ADDR'])) {
|
||||
$this->remoteAddr = $server['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
$this->sslEnabled = $config->get('system', 'ssl_policy') === App\BaseURL::SSL_POLICY_FULL;
|
||||
$this->sslEnabled = $baseURL->getSSLPolicy() === App\BaseURL::SSL_POLICY_FULL;
|
||||
$this->sitePrivateKey = $config->get('system', 'site_prvkey');
|
||||
|
||||
$authCookieDays = $config->get('system', 'auth_cookie_lifetime',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue