Class Core_Session
Sessions
Start Session
Core_Session::start();
Close Session
Core_Session::close();
Direct known subclasses
Package: HostCMS\Core
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/session.php
Methods summary
public static
boolean
|
|
public static
|
|
protected static
|
|
public static
|
|
public static
boolean
|
|
public static
string
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
|
|
protected static
|
|
protected static
srting
|
|
public static
boolean
|
|
public static
boolean
|
|
protected
|
|
public static
true
|
|
public static
integer
|
|
abstract public
boolean
|
#
sessionOpen( string $save_path, string $session_name )
The open callback works like a constructor in classes and is executed when the session is being opened. |
abstract public
boolean
|
#
sessionClose( )
The close callback works like a destructor in classes and is executed after the session write callback has been called. |
abstract public
string
|
#
sessionRead( string $id )
The read callback must always return a session encoded (serialized) string, or an empty string if there is no data to read. |
abstract public
boolean
|
#
sessionWrite( string $id, string $value )
The write callback is called when the session needs to be saved and closed. |
abstract public
boolean
|
#
sessionDestroyer( string $id )
This callback is executed when a session is destroyed with session_destroy() |
abstract public
boolean
|
#
sessionGc( string $maxlifetime )
The garbage collector callback is invoked internally by PHP periodically in order to purge old session data. |
abstract public
boolean
|
#
sessionMaxlifetime( integer $maxlifetime, boolean $overwrite = FALSE )
This callback is executed when a session sets maxlifetime |
Properties summary
protected static
boolean
|
$_started
Session has been started |
#
FALSE
|
protected static
boolean
|
$_debug
|
#
FALSE
|
protected static
integer
|
$_cookieLifetime
Cookie Lifetime, default 31536000 |
#
31536000
|
protected static
|
$_hasSessionId
Is the current request has sent the session ID. |
#
NULL
|
protected static
|
$_handler
|
#
NULL
|
protected static
|
$_error
|
#
NULL
|
protected static
integer
|
$_maxlifetime
Session maxlifetime |
#
NULL
|