thrownewCException(Yii::t('yii','DbSession.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.',
thrownewInvalidConfigException("DbSession::connectionID must refer to the ID of a DB application component.");
* Then, the session data will be stored and retrieved using the above methods.
* [[destroySession()]] and [[gcSession()]].
*
*
* Session is a Web application component that can be accessed via
* Session is a Web application component that can be accessed via
* {@link CWebApplication::getSession()}.
* `Yii::$app->session`.
*
*
* @property boolean $useCustomStorage Whether to use custom storage.
* @property boolean $useCustomStorage read-only. Whether to use custom storage.
* @property boolean $isStarted Whether the session has started.
* @property boolean $isActive Whether the session has started.
* @property string $sessionID The current session ID.
* @property string $id The current session ID.
* @property string $sessionName The current session name.
* @property string $name The current session name.
* @property string $savePath The current session save path, defaults to '/tmp'.
* @property string $savePath The current session save path, defaults to '/tmp'.
* @property array $cookieParams The session cookie parameters.
* @property array $cookieParams The session cookie parameters.
* @property string $cookieMode How to use cookie to store session ID. Defaults to 'Allow'.
* @property string $cookieMode How to use cookie to store session ID. Defaults to 'Allow'.
* @property float $gCProbability The probability (percentage) that the gc (garbage collection) process is started on every session initialization, defaults to 1 meaning 1% chance.
* @property float $gcProbability The probability (percentage) that the gc (garbage collection) process is started on every session initialization.
* @property boolean $useTransparentSessionID Whether transparent sid support is enabled or not, defaults to false.
* @property boolean $useTransparentSessionID Whether transparent sid support is enabled or not, defaults to false.
* @property integer $timeout The number of seconds after which data will be seen as 'garbage' and cleaned up, defaults to 1440 seconds.
* @property integer $timeout The number of seconds after which data will be seen as 'garbage' and cleaned up, defaults to 1440 seconds.
* @property SessionIterator $iterator An iterator for traversing the session variables.
* @property SessionIterator $iterator An iterator for traversing the session variables.
* Returns a value indicating whether to use custom session storage.
* Returns a value indicating whether to use custom session storage.
* To use custom session storage, override this method and return This method should be overridden to return true if custom session storage handler should be used.
* This method should be overridden to return true by child classes that implement custom session storage.
* If returning true, make sure the methods {@link openSession}, {@link closeSession}, {@link readSession},
* To implement custom session storage, override these methods: [[openSession()]], [[closeSession()]],
* {@link writeSession}, {@link destroySession}, and {@link gcSession} are overridden in child
* [[readSession()]], [[writeSession()]], [[destroySession()]] and [[gcSession()]].
* class, because they will be used as the callback handlers.