/** * @return Nette\Http\Session */ public function createServiceSession() { $service = new Nette\Http\Session($this->getService('httpRequest'), $this->getService('httpResponse')); $service->setExpiration('14 days'); return $service; }
/** * @return Nette\Http\Session */ public function createServiceSession() { $service = new Nette\Http\Session($this->getService('httpRequest'), $this->getService('httpResponse')); $service->setExpiration('14 days'); $service->setOptions(array('save_path' => '/home/fuca/Projects/www/sportsclub/tests/tmp/sessions', 'name' => 'sportsclub')); return $service; }