com\setasign\SetaFramework\Session

StoragelessSession Interface SessionInterface

File: /SetaFramework/src/Session/StoragelessSession.php

Class hierarchy

Implements

Summary

Properties

$namespace

$session


Static Methods

buildSessionMiddleware()

public static StoragelessSession::buildSessionMiddleware (): \PSR7Sessions\Storageless\Http\SessionMiddleware
Parameters
$config : ?\com\setasign\SetaFramework\Config\Config
 

getSessionFromRequest()


Methods

__construct()

public StoragelessSession::__construct (
\PSR7Sessions\Storageless\Session\SessionInterface $session,
string $namespace
)
Parameters
$session : \PSR7Sessions\Storageless\Session\SessionInterface
 
$namespace : string
 

__get()

public StoragelessSession::__get (
string $name
): ?mixed
Parameters
$name : string
 
Exceptions

Throws \InvalidArgumentException If the entry doesn't exist

__isset()

public StoragelessSession::__isset (
string $name
): bool
Parameters
$name : string
 

__set()

public StoragelessSession::__set (
string $name,
mixed $value
): void
Parameters
$name : string
 
$value : mixed
 
Exceptions

Throws \BadMethodCallException If the session is not active

__unset()

public StoragelessSession::__unset (
string $name
): void
Parameters
$name : string
 

destroy()

public StoragelessSession::destroy (
void
): void

get()

public StoragelessSession::get (
string $name,
mixed $default = null
): ?mixed
Parameters
$name : string
 
$default : mixed
 

getNamespace()

public StoragelessSession::getNamespace (
void
): string

set()

public StoragelessSession::set (
string $name,
mixed $value
): self
Parameters
$name : string
 
$value : mixed