PHP Class AppserverIo\Appserver\ServletEngine\Http\SessionWrapper

Inheritance: extends AppserverIo\Psr\Servlet\Http\HttpSessionWrapper
Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Свойство Type Description
$request AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The request instance we're working on.

Méthodes publiques

Méthode Description
close ( ) : void Explicitly writes and closes the session
destroy ( string $reason ) : void Explicitly destroys all session data and adds a cookie to the response that invalidates the session in the browser.
getRequest ( ) : AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface Returns the request instance we're working on.
getResponse ( ) : AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface Returns the response instance we're working on.
injectRequest ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $request ) : void Injects the request instance.
removeData ( string $key ) : void Removes the session data entry $key from the session.
renewId ( ) : string Generates and propagates a new session ID and transfers all existing data to the new session.
shutdownObject ( ) : void Shuts down this session
start ( ) : void Creates and returns the session cookie to be added to the response.

Method Details

close() public méthode

Explicitly writes and closes the session
public close ( ) : void
Résultat void

destroy() public méthode

Explicitly destroys all session data and adds a cookie to the response that invalidates the session in the browser.
public destroy ( string $reason ) : void
$reason string The reason why the session has been destroyed
Résultat void

getRequest() public méthode

Returns the request instance we're working on.
public getRequest ( ) : AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface
Résultat AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface

getResponse() public méthode

Returns the response instance we're working on.
public getResponse ( ) : AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface
Résultat AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface

injectRequest() public méthode

Injects the request instance.
public injectRequest ( AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface $request ) : void
$request AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The request instance we're working on
Résultat void

removeData() public méthode

Removes the session data entry $key from the session.
public removeData ( string $key ) : void
$key string Entry identifier of the session data to remove
Résultat void

renewId() public méthode

Generates and propagates a new session ID and transfers all existing data to the new session.
public renewId ( ) : string
Résultat string The new session ID

shutdownObject() public méthode

This method must not be called manually – it is invoked by Flow's object management.
public shutdownObject ( ) : void
Résultat void

start() public méthode

Creates and returns the session cookie to be added to the response.
public start ( ) : void
Résultat void

Property Details

$request protected_oe property

The request instance we're working on.
protected HttpServletRequestInterface,AppserverIo\Psr\Servlet\Http $request
Résultat AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface