1
0
Fork 0

Refactor Session Handling (make it more simple & handler are now handler again)

This commit is contained in:
Philipp Holzer 2019-12-11 20:30:31 +01:00
commit 1408908c84
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
11 changed files with 143 additions and 140 deletions

View file

@ -29,7 +29,8 @@ interface ISession
* Handle the case where session_start() hasn't been called and the super global isn't available.
*
* @param string $name
* @param mixed $defaults
* @param mixed $defaults
*
* @return mixed
*/
public function get(string $name, $defaults = null);
@ -39,7 +40,7 @@ interface ISession
* Overrides value of existing key.
*
* @param string $name
* @param mixed $value
* @param mixed $value
*/
public function set(string $name, $value);
@ -63,9 +64,4 @@ interface ISession
* Clears the current session array
*/
public function clear();
/**
* Kills the "Friendica" cookie and all session data
*/
public function delete();
}