mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-06 06:07:29 +02:00
21 lines
412 B
PHP
21 lines
412 B
PHP
<?php
|
|
namespace Sessions;
|
|
|
|
require_once 'autoload.php';
|
|
require_once 'errorhandler.php';
|
|
|
|
$sessions = new \Sessions;
|
|
$sessions->configure();
|
|
$sessions->extend_session();
|
|
|
|
if (\Config::get_schema_version() >= 0) {
|
|
session_set_save_handler($sessions);
|
|
|
|
if (!defined('NO_SESSION_AUTOSTART')) {
|
|
if (isset($_COOKIE[session_name()])) {
|
|
if (session_status() != PHP_SESSION_ACTIVE)
|
|
session_start();
|
|
}
|
|
}
|
|
}
|