TCacheHttpSession class
TCacheHttpSession provides access for storing session data using a cache module (e.g. TMemCache, TDbCache). To specify the cache module for data storage, set the CacheModuleID property which should refer to a valid cache module configured in the application configuration.
The following example shows how we configure TCacheHttpSession:
- <modules>
- <module id="cache" class="System.Caching.TMemCache" Host="localhost" Port="11211" />
- <module id="session" class="System.Web.TCacheHttpSession"
- CacheModuleID="cache" SessionName="SSID"
- CookieMode="Allow" AutoStart="true" GCProbability="1"
- UseTransparentSessionID="true" TimeOut="3600" />
- </modules>
Beware, by definition cache storage are volatile, which means the data stored on them may be swapped out and get lost. This may not be the case for certain cache storage, such as database. So make sure you manage your cache properly to avoid loss of session data.
Located in /Web/TCacheHttpSession.php (line 43)
TComponent | --TApplicationComponent | --THttpSession | --TCacheHttpSession
Initializes the module.
This method is required by IModule. It reads the CacheModule property.
Session destroy handler.
This method should be overriden if UseCustomStorage is set true.
Session read handler.
Session write handler.
Inherited From THttpSession
THttpSession::add()
THttpSession::clear()
THttpSession::close()
THttpSession::contains()
THttpSession::count()
THttpSession::destroy()
THttpSession::getAutoStart()
THttpSession::getCookie()
THttpSession::getCookieMode()
THttpSession::getCount()
THttpSession::getGCProbability()
THttpSession::getID()
THttpSession::getIsStarted()
THttpSession::getIterator()
THttpSession::getKeys()
THttpSession::getSavePath()
THttpSession::getSessionID()
THttpSession::getSessionName()
THttpSession::getTimeout()
THttpSession::getUseCustomStorage()
THttpSession::getUseTransparentSessionID()
THttpSession::init()
THttpSession::itemAt()
THttpSession::offsetExists()
THttpSession::offsetGet()
THttpSession::offsetSet()
THttpSession::offsetUnset()
THttpSession::open()
THttpSession::remove()
THttpSession::setAutoStart()
THttpSession::setCookieMode()
THttpSession::setGCProbability()
THttpSession::setID()
THttpSession::setSavePath()
THttpSession::setSessionID()
THttpSession::setSessionName()
THttpSession::setTimeout()
THttpSession::setUseCustomStorage()
THttpSession::setUseTransparentSessionID()
THttpSession::toArray()
THttpSession::_close()
THttpSession::_destroy()
THttpSession::_gc()
THttpSession::_open()
THttpSession::_read()
THttpSession::_write()
Inherited From TApplicationComponent
TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()
Inherited From TComponent
TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Documentation generated on Mon, 21 Apr 2008 11:32:06 -0400 by phpDocumentor 1.3.0RC4