A handler that maintains a @see \io\vertx\jphp\ext\web\Session for each browser session.
It looks up the session for each request based on a session cookie which contains a session ID. It stores the session when the response is ended in the session store.
The session is available on the routing context with .
The session handler requires a @see \io\vertx\jphp\ext\web\handler\CookieHandler to be on the routing chain before it.
package |
Default |
---|
__construct()
create( $arg0) : \io\vertx\jphp\ext\web\handler\SessionHandler
handle( $arg0) : void
RoutingContext
setCookieHttpOnlyFlag( $arg0) : $this
boolean
$this
a reference to this, so the API can be used fluently
setCookieSecureFlag( $arg0) : $this
boolean
$this
a reference to this, so the API can be used fluently
setMinLength( $arg0) : $this
integer
$this
a reference to this, so the API can be used fluently
setNagHttps( $arg0) : $this
boolean
$this
a reference to this, so the API can be used fluently
setSessionCookieName( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
setSessionCookiePath( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
setSessionTimeout( $arg0) : $this
integer
$this
a reference to this, so the API can be used fluently
DEFAULT_SESSION_COOKIE_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_SESSION_COOKIE_PATH
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_SESSION_TIMEOUT
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_NAG_HTTPS
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_COOKIE_HTTP_ONLY_FLAG
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_COOKIE_SECURE_FLAG
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_SESSIONID_MIN_LENGTH
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|