PHP 클래스 AppserverIo\Appserver\ServletEngine\Http\SessionWrapper

상속: extends AppserverIo\Psr\Servlet\Http\HttpSessionWrapper
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$request AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface The request instance we're working on.

공개 메소드들

메소드 설명
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.

메소드 상세

close() 공개 메소드

Explicitly writes and closes the session
public close ( ) : void
리턴 void

destroy() 공개 메소드

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
리턴 void

getRequest() 공개 메소드

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

getResponse() 공개 메소드

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

injectRequest() 공개 메소드

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
리턴 void

removeData() 공개 메소드

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

renewId() 공개 메소드

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

shutdownObject() 공개 메소드

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

start() 공개 메소드

Creates and returns the session cookie to be added to the response.
public start ( ) : void
리턴 void

프로퍼티 상세

$request 보호되어 있는 프로퍼티

The request instance we're working on.
protected HttpServletRequestInterface,AppserverIo\Psr\Servlet\Http $request
리턴 AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface