Initial Commit

This commit is contained in:
David Stone
2024-11-30 18:24:12 -07:00
commit e8f7955c1c
5432 changed files with 1397750 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
declare (strict_types=1);
namespace WP_Ultimo\Dependencies\Jasny\SSO\Server;
/**
* Interface to start a session.
*/
interface SessionInterface
{
/**
* @see session_id()
*/
public function getId() : string;
/**
* Start a new session.
* @see session_start()
*
* @throws ServerException if session can't be started.
*/
public function start() : void;
/**
* Resume an existing session.
*
* @throws ServerException if session can't be started.
* @throws BrokerException if session is expired
*/
public function resume(string $id) : void;
/**
* Check if a session is active. (status PHP_SESSION_ACTIVE)
* @see session_status()
*/
public function isActive() : bool;
}