2022.09-rc
nupplaPhil 2019-12-10 00:50:05 +01:00
rodzic 555513e4b4
commit cad7e534a4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D8365C3D36B77D90
4 zmienionych plików z 9 dodań i 6 usunięć

Wyświetl plik

@ -2,8 +2,9 @@
namespace Friendica\Core\Session;
use Friendica\BaseObject;
/**
* Contains all global supported Session methods
*/
interface ISession
{
/**

Wyświetl plik

@ -3,8 +3,6 @@
namespace Friendica\Core\Session;
/**
* Native Session functions for internal Session usage.
*
* Usable for backend processes (daemon/worker) and testing
*/
final class MemorySession implements ISession

Wyświetl plik

@ -6,6 +6,9 @@ use Friendica\Core\Config\Configuration;
use Friendica\App;
use Friendica\Model\User\Cookie;
/**
* The native Session class which uses the PHP internal Session function
*/
class NativeSession implements ISession
{
/** @var Cookie */
@ -88,7 +91,5 @@ class NativeSession implements ISession
{
$this->cookie->clear();
$_SESSION = [];
session_unset();
session_destroy();
}
}

Wyświetl plik

@ -18,6 +18,9 @@ use Friendica\Model\User\Cookie;
use Friendica\Util\Profiler;
use Psr\Log\LoggerInterface;
/**
* Factory for creating a valid Session for this run
*/
class SessionFactory
{
/** @var string The plain, PHP internal session management */