public function __construct($namespace = 'Default') { if (strlen($namespace) == 0) { throw new Wax_Session_Exception("The session name '{$namespace}' must be a non-empty string"); } if (strncmp($namespace, '__', 1) == 0) { throw new Wax_Session_Exception("The session name '{$namespace}' must not start with an underscore."); } if (!Wax_Session::isStarted()) { throw new Wax_Session_Exception("Session must be started."); } $this->_namespace = $namespace; }
public static function destroy() { self::$_sessionDestroyed = session_destroy(); }
Wax_Factory::includeClass('Wax_Controller_Icon'); Wax_Controller_Icon::getInstance()->setIconPath(ICON_PATH)->dispatch(); } elseif (strncmp($requestURI, '/@JavaScript/', 5) == 0) { Wax_Factory::includeClass('Wax_Controller_JavaScript'); Wax_Controller_JavaScript::getInstance()->setModulesPath(MODULES_PATH)->setLibraryPath(LIBRARY_PATH)->dispatch(); } elseif (strncmp($requestURI, '/~', 2) == 0) { Wax_Factory::includeClass('Wax_Controller_Profile'); Wax_Controller_Profile::getInstance()->setProfileClass(array('Standard8', 'Personas_Perfil'))->dispatch(); } else { Wax_Factory::includeClass('Wax_Controller_Front'); Wax_Factory::includeClass('Wax_Session'); Wax_Factory::includeClass('Wax_Db'); Wax_Factory::includeClass('Standard8_Config'); Wax_Factory::includeClass('Standard8_Session'); Wax_Factory::includeClass('Standard8_Uri'); Wax_Session::start(); Wax_Locale::setLocalePath(LOCALE_PATH); Wax_Locale::__init(); Wax_Db::open($dbConfig); Standard8_Session::start(); Standard8_Config::getInstance(); Wax_Document::$head->importStyle('/stylesheets/screen.css'); Wax_Document::$head->importStyle('/stylesheets/ie.css', Wax_Document_Head_Style::MEDIA_SCREEN, 'IE 6'); Wax_Document::$head->importJavaScript('/javascripts/jquery.js'); Wax_Document::$head->importJavaScript('/javascripts/wax.js'); $SID = Standard8_Session::getSID(); $frontController = Wax_Controller_Front::getInstance()->setBinaryPath(MODULES_PATH)->setBase(array('Standard8', 'Standard8'))->setDefault(array('Standard8', 'Modules')); if (empty($SID)) { $currentClass = $frontController->getClass(); $supportClasses = array('Personas_Invitacion', 'Personas_Recuperar', 'Personas_Ingresar'); $supportFound = false;