Example #1
0
 function testSetup()
 {
     $s = new \Foundation\Session();
     $vars = array('name', 'use_only_cookies', 'hash_function', 'save_path', 'cookie_secure', 'gc_maxlifetime', 'gc_probability', 'gc_divisor', 'cookie_lifetime', 'cookie_path', 'cookie_domain');
     foreach ($vars as $name) {
         $this->assertEquals($s->getConfigVariable($name), ini_get('session.' . $name));
     }
 }
Example #2
0
 protected function getSessionStore()
 {
     if (is_null($this->_sessionStore)) {
         $session = new \Foundation\Session();
         $this->_sessionStore = $session->getStore('files');
     }
     return $this->_sessionStore;
 }