]> git.mxchange.org Git - friendica.git/blob - src/Core/Session/Memory.php
Use Native Session functions (global "$_SESSION" variable) for Memory class because...
[friendica.git] / src / Core / Session / Memory.php
1 <?php
2
3 namespace Friendica\Core\Session;
4
5 /**
6  * Usable for backend processes (daemon/worker) and testing
7  *
8  * @todo after replacing the last direct $_SESSION call, use a internal array instead of the global variable
9  */
10 final class Memory extends Native
11 {
12         public function start()
13         {
14                 // Backward compatibility until all Session variables are replaced
15                 // with the Session class
16                 $_SESSION = [];
17                 $this->clear();
18                 return $this;
19         }
20 }