Beispiel #1
0
 protected function init()
 {
     if (self::$container === null) {
         switch ($this->type) {
             case 'native':
                 self::$container = Suricate::SessionNative(true);
                 break;
             case 'cookie':
                 self::$container = Suricate::SessionCookie(true);
                 break;
             case 'memcache':
                 self::$container = Suricate::SessionMemcache(true);
                 break;
             default:
                 throw new Exception("Unknown session type " . $this->type);
                 break;
         }
     }
 }