Exemple #1
0
 public static function start()
 {
     if (Session::sessionExist()) {
         throw new Model3Exception('Session already exist');
     }
     return session_start();
 }
Exemple #2
0
 public function __construct($name = 'Default')
 {
     if (!Session::sessionExist()) {
         throw new Model3Exception('Session not found');
     }
     if (!isset($_SESSION['__M3']['Namespaces'][$name])) {
         $_SESSION['__M3']['Namespaces'][$name] = array();
     }
     $this->_name = $name;
 }