public static function start() { if (Session::sessionExist()) { throw new Model3Exception('Session already exist'); } return session_start(); }
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; }