friendica/src/Core/Session/Memory.php

21 lines
440 B
PHP

<?php
namespace Friendica\Core\Session;
/**
* Usable for backend processes (daemon/worker) and testing
*
* @todo after replacing the last direct $_SESSION call, use a internal array instead of the global variable
*/
final class Memory extends Native
{
public function start()
{
// Backward compatibility until all Session variables are replaced
// with the Session class
$_SESSION = [];
$this->clear();
return $this;
}
}