예제 #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));
     }
 }
예제 #2
0
파일: FileStore.php 프로젝트: Jazzee/Jazzee
 protected function getSessionStore()
 {
     if (is_null($this->_sessionStore)) {
         $session = new \Foundation\Session();
         $this->_sessionStore = $session->getStore('files');
     }
     return $this->_sessionStore;
 }