/**
* Initializes the application component.
*/
public function init()
{
parent::init();
if (!$this->cache instanceof HSCache) {
throw new InvalidConfigException('Cache component for session must be instance of ' . HSCache::className());
}
$this->cache = clone $this->cache;
$this->cache->group = $this->group;
}