mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:50:10 +00:00
Create own base URL class which holds the whole base url business logic
This commit is contained in:
parent
6ea531d2f8
commit
318a3ca785
16 changed files with 434 additions and 876 deletions
|
@ -7,6 +7,7 @@ namespace Friendica\Core;
|
|||
|
||||
use Friendica\Core\Session\CacheSessionHandler;
|
||||
use Friendica\Core\Session\DatabaseSessionHandler;
|
||||
use Friendica\Util\BaseURL;
|
||||
|
||||
/**
|
||||
* High-level Session service class
|
||||
|
@ -24,7 +25,7 @@ class Session
|
|||
ini_set('session.use_only_cookies', 1);
|
||||
ini_set('session.cookie_httponly', 1);
|
||||
|
||||
if (Config::get('system', 'ssl_policy') == SSL_POLICY_FULL) {
|
||||
if (Config::get('system', 'ssl_policy') == BaseUrl::SSL_POLICY_FULL) {
|
||||
ini_set('session.cookie_secure', 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue