2019-12-10 00:44:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Core\Session;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Usable for backend processes (daemon/worker) and testing
|
2019-12-10 22:29:49 +01:00
|
|
|
*
|
|
|
|
* @todo after replacing the last direct $_SESSION call, use a internal array instead of the global variable
|
2019-12-10 00:44:56 +01:00
|
|
|
*/
|
2019-12-11 20:30:31 +01:00
|
|
|
final class Memory extends AbstractSession implements ISession
|
2019-12-10 00:44:56 +01:00
|
|
|
{
|
2019-12-29 00:03:58 +01:00
|
|
|
public function __construct()
|
2019-12-10 23:35:16 +01:00
|
|
|
{
|
2019-12-10 08:49:33 +01:00
|
|
|
// Backward compatibility until all Session variables are replaced
|
|
|
|
// with the Session class
|
|
|
|
$_SESSION = [];
|
2019-12-10 00:44:56 +01:00
|
|
|
}
|
2019-12-10 22:29:49 +01:00
|
|
|
}
|