web\CacheSession writeSession()

writeSession() public method Session write handler. Do not call this method directly. public boolean writeSession ( $id, $data )$id string Session ID $data string Session data return boolean Whether session write is successful

web\CacheSession readSession()

readSession() public method Session read handler. Do not call this method directly. public string readSession ( $id )$id string Session ID return string The session data

web\CacheSession init()

init() public method Initializes the application component. public void init ( )

web\CacheSession getUseCustomStorage()

getUseCustomStorage() public method Returns a value indicating whether to use custom session storage. This method overrides the parent implementation and always returns true. public boolean getUseCustomStorage ( )return boolean Whether to use custom storage.

web\CacheSession destroySession()

destroySession() public method Session destroy handler. Do not call this method directly. public boolean destroySession ( $id )$id string Session ID return boolean Whether session is destroyed successfully

web\CacheSession calculateKey()

calculateKey() protected method Generates a unique key used for storing session data in cache. protected mixed calculateKey ( $id )$id string Session variable name return mixed A safe cache key associated with the session variable name

web\CacheSession $useCustomStorage

$useCustomStorage public read-only property Whether to use custom storage. public boolean getUseCustomStorage ( )

web\CacheSession $cache

$cache public property The cache object or the application component ID of the cache object. The session data will be stored using this cache object. After the CacheSession object is created, if you want to change this property, you should only assign it with a cache object. Starting from version 2.0.2, this can also be a configuration array for creating the object. public yii\caching\Cache|array|string $cache = 'cache'

web\BadRequestHttpException __construct()

__construct() public method Constructor. public void __construct ( $message = null, $code = 0, Exception $previous = null )$message string Error message $code integer Error code $previous Exception The previous exception used for the exception chaining.

web\AssetManager setConverter()

setConverter() public method Sets the asset converter. public void setConverter ( $value )$value array|yii\web\AssetConverterInterface The asset converter. This can be either an object implementing the yii\web\AssetConverterInterface, or a configuration array that can be used to create the asset converter object.