namespace Friendica\Core\Session;
-use Friendica\BaseObject;
-
+/**
+ * Contains all global supported Session methods
+ */
interface ISession
{
/**
namespace Friendica\Core\Session;
/**
- * Native Session functions for internal Session usage.
- *
* Usable for backend processes (daemon/worker) and testing
*/
final class MemorySession implements ISession
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 */
{
$this->cookie->clear();
$_SESSION = [];
- session_unset();
- session_destroy();
}
}
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 */