Class CCacheHttpSession
CCacheHttpSession implements a session component using cache as storage medium.
The cache being used can be any cache application component implementing
ICache interface. The ID of the cache application component is specified
via CCacheHttpSession::$cacheID, which defaults to 'cache'.
Beware, by definition cache storage are volatile, which means the data stored
on them may be swapped out and get lost. Therefore, you must make sure the cache
used by this component is NOT volatile. If you want to use CDbCache as
storage medium, use CDbHttpSession is a better choice.
- CComponent
-
CApplicationComponent
implements
IApplicationComponent
-
CHttpSession
implements
IteratorAggregate,
ArrayAccess,
Countable
-
CCacheHttpSession
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/CCacheHttpSession.php
public
|
|
public
boolean
|
#
getUseCustomStorage( )
Returns a value indicating whether to use custom session storage. This method overrides the parent implementation and always returns true. |
public
string
|
|
public
boolean
|
|
public
boolean
|
|
protected
string
|
getIsInitialized()
|
string |
CACHE_KEY_PREFIX
|
'Yii.CCacheHttpSession.' |
#
Prefix to the keys for storing cached data |
public
string
|
$cacheID | 'cache' |
#
the ID of the cache application component. Defaults to 'cache' (the primary cache application component.) |
$autoStart
|
$behaviors
|
public
boolean
|
$useCustomStorage |
#
Whether to use custom storage. |
$cookieMode,
$cookieParams,
$count,
$gCProbability,
$isStarted,
$iterator,
$keys,
$savePath,
$sessionID,
$sessionName,
$timeout,
$useTransparentSessionID
|
$isInitialized
|