本文整理汇总了PHP中Zend_Session_Namespace::unsetAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Session_Namespace::unsetAll方法的具体用法?PHP Zend_Session_Namespace::unsetAll怎么用?PHP Zend_Session_Namespace::unsetAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Session_Namespace
的用法示例。
在下文中一共展示了Zend_Session_Namespace::unsetAll方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: indexAction
public function indexAction()
{
$this->_helper->layout()->setLayout("blank");
$auth = new Zend_Session_Namespace('Zend_Auth');
$auth->unsetAll();
return $this->_redirect('/index');
}
示例2: clearSessionBYStep
function clearSessionBYStep($step)
{
$session_step = new Zend_Session_Namespace('bookcitytour');
if ($step == 1) {
$session_step->unsetAll();
// $session_step->pickup_date =null;
// $session_step->pickup_time = null;
// $session_step->pickup_mins = null;
// $session_step->step2 =0;
// $session_step->return_date = null;
// $session_step->return_time =null;
// $session_step->return_mins =null;
// $session_step->vehiclevaliable = null;
} elseif ($step == 2) {
$session_step->step3 = 0;
$session_step->vehicle_id = null;
//$data get parram store value only not array
$session_step->price = 0;
$session_step->guideavaliable = null;
$session_step->vehicle_name = null;
$session_step->guide_id = null;
$session_step->step4 = 0;
$session_step->guidename = null;
$session_step->guideprice = null;
} elseif ($step == 3) {
$session_step->guide_id = null;
$session_step->step4 = 0;
$session_step->guidename = null;
$session_step->guideprice = null;
}
}
示例3: finishAction
/**
* Finish Action
*/
public function finishAction()
{
$filename = $this->_configDir . $this->_configFile;
$config = $this->_store->config->production->resources;
$config->frontController->defaultModule = 'index';
$config->layout->layout = 'default/layout';
$writer = new Core_Config_Writer_Yaml();
$writer->setConfig($this->_store->config);
if (is_writable($this->_configDir)) {
$writer->write($filename);
$this->_store->unsetAll();
//remove install module
$pathToModules = APPLICATION_PATH . '/modules/';
$module = 'install';
$pathToModule = $pathToModules . $module;
if (is_dir($pathToModules) && is_writable($pathToModules) && is_dir($pathToModule)) {
rename($pathToModule, APPLICATION_PATH . '/modules/.' . $module);
$this->_helper->flashMessenger($this->view->__('Remove module Install'));
}
$this->_helper->flashMessenger("Installation complete");
$this->_helper->redirector(false, false, false);
} else {
$this->view->filename = $filename;
$this->view->config = $writer->render();
}
}
示例4: logoutAction
public function logoutAction()
{
Zend_Auth::getInstance()->clearIdentity();
$session = new Zend_Session_Namespace('userSession');
$session->unsetAll();
$this->_redirect("/giris/index");
}
示例5: indexAction
/**
* Renders the first form:
* a list of available document types (that can be configured in config.ini
* and different upload fields
*
* @return void
*
*/
public function indexAction()
{
$session = new Zend_Session_Namespace('Publish');
//unset all possible session content
$session->unsetAll();
$this->view->title = 'publish_controller_index';
$form = new Publish_Form_PublishingFirst();
$this->view->action_url = $this->view->url(array('controller' => 'form', 'action' => 'upload'));
$this->view->showBib = $form->bibliographie;
$this->view->showRights = $form->showRights;
$this->view->enableUpload = $form->enableUpload;
if (!$form->enableUpload) {
$this->view->subtitle = 'publish_controller_index_sub_without_file';
} else {
$this->view->subtitle = 'publish_controller_index_sub';
}
//initialize session variables
// TODO hide initialization routine
$session->documentType = "";
$session->documentId = "";
$session->additionalFields = array();
$config = $this->getConfig();
if (isset($config->publish->filetypes->allowed)) {
$this->view->extensions = $config->publish->filetypes->allowed;
}
// Quick bug fix for OPUSVIER-3564
$translate = Zend_Registry::get('Zend_Translate');
if ($translate->isTranslated('tooltip_documentType')) {
$this->view->documentType['hint'] = 'tooltip_documentType';
}
}
示例6: indexAction
public function indexAction()
{
$ns = new Zend_Session_Namespace('login');
$ns->unsetAll();
$this->_redirect('manager');
$this->_helper->viewRenderer->setNoRender();
}
示例7: testLoginWithoutSession
/**
* Test if login passes with user not logged it
*/
public function testLoginWithoutSession()
{
$this->setExpectedException('Phprojekt_Auth_UserNotLoggedInException');
$authNamespace = new Zend_Session_Namespace('Phprojekt_Auth-login');
$authNamespace->unsetAll();
Phprojekt_Auth::isLoggedIn();
}
示例8: _checkForModifications
protected function _checkForModifications($initialize = false)
{
return true;
// Just disable it for now
$currentSignature = $this->_session->currentInstallerSignature;
$installedPackages = $this->_packageManager->listInstalledPackages();
$currentInstallerPackage = $installedPackages->offsetGet('core-install');
if (!$currentInstallerPackage || strlen($currentSignature) == 40) {
$signature = sha1(file_get_contents(__FILE__));
} else {
$signature = $currentInstallerPackage->getVersion();
}
// Initialize
if (true === $initialize) {
$this->_session->currentInstallerSignature = $signature;
return true;
} else {
if ($signature != $this->_session->currentInstallerSignature) {
$extractedPackages = $this->_packageManager->listExtractedPackages();
$this->view->extractedPackageKeys = $extractedPackages->getArrayKeys();
$this->view->extractedPackageKeys = array_diff($this->view->extractedPackageKeys, array($extractedPackages->getKeyByGuid('core-install'), $extractedPackages->getKeyByGuid('library-engine')));
$this->_session->unsetAll();
$this->_helper->viewRenderer->renderScript('_installerUpdated.tpl');
return false;
}
}
// Was not updated
return true;
}
示例9: preDispatch
/**
* Setzt alle Daten des Layouts aus den Einstellungsdateien
* @throw Zend_Controller_Dispatcher_Exception
*/
public function preDispatch()
{
parent::preDispatch();
$modulename = $this->getRequest()->getModuleName();
$this->view->modulename = $modulename;
$controllername = $this->getRequest()->getControllerName();
$this->view->controllername = $controllername;
$actionname = $this->getRequest()->getActionName();
$recordAccount = null;
if (Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Account') && Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Emailaddress')) {
$sessionNamespace = new Zend_Session_Namespace();
if (isset($sessionNamespace->sessionhash)) {
$logicSession = new DragonX_Account_Logic_Session();
try {
$recordAccount = $logicSession->getAccount($sessionNamespace->sessionhash);
$this->view->sessionhash = $sessionNamespace->sessionhash;
Zend_Registry::set('recordAccount', $recordAccount);
$this->view->recordAccount = $recordAccount;
$logicEmailaddress = new DragonX_Emailaddress_Logic_Emailaddress();
$this->view->recordEmailaddress = $logicEmailaddress->getEmailaddress($recordAccount);
$logicDeletion = new DragonX_Account_Logic_Deletion();
$recordDeletion = $logicDeletion->getDeletion($recordAccount);
if (isset($recordDeletion)) {
$this->view->recordDeletion = $recordDeletion;
}
} catch (Exception $exception) {
$sessionNamespace->unsetAll();
if ($modulename == 'homepage' && $controllername == 'account' && $actionname == 'logout') {
$this->_helper->FlashMessenger('<div class="alert alert-success">Abmeldung erfolgreich</div>');
} else {
$this->_helper->FlashMessenger('<div class="alert alert-error">Die Session ist abgelaufen. Profil muss neu angemeldet werden</div>');
}
}
}
}
$this->view->configApplication = new Dragon_Application_Config('dragon/application/application');
$modulenamearray = explode('_', $modulename);
$controllerarea = end($modulenamearray);
$this->view->controllerarea = $controllerarea;
switch ($controllerarea) {
case 'homepage':
$this->view->configNavigation = new Dragon_Application_Config('dragonx/homepage/navigation/homepage');
break;
case 'administration':
if (!Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Account') || !Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Emailaddress')) {
throw new Dragon_Application_Exception_User('incorrect controller', array('controllername' => $controllername));
}
if (!isset($recordAccount)) {
$this->_helper->FlashMessenger('<div class="alert alert-error">Die Session wurde noch nicht gestartet oder ist abgelaufen. Profil muss angemeldet werden</div>');
$this->_redirect('account/showlogin?' . http_build_query(array('redirect' => $modulename . '/' . $controllername . '/' . $actionname)));
}
if (Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Acl')) {
$logicAcl = new DragonX_Acl_Logic_Acl();
$this->view->resources = $logicAcl->getResources($recordAccount);
}
$this->view->configNavigation = new Dragon_Application_Config('dragonx/homepage/navigation/administration');
break;
}
}
示例10: logoutAction
public function logoutAction()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$authNamespace = new Zend_Session_Namespace('identify');
$authNamespace->unsetAll();
$this->_redirect('/');
}
示例11: index
/**
* Only page user sees, sets up the component and stores in session
*
* @return void
*/
public function index()
{
$ns = new Zend_Session_Namespace('quiz');
$ns->unsetAll();
$quiz = new MowattMedia_Components_Quiz();
$values = $quiz->populate();
$ns->quiz = serialize($quiz);
}
示例12: logoutAction
public function logoutAction()
{
$this->getHelper('viewRenderer')->setNoRender();
//remove other display
$ud = new Zend_Session_Namespace("visitor");
$ud->unsetAll();
$this->_helper->redirector("index", "index", "default");
}
示例13: destroy
/**
* Remove a certain key from the store
* @param String $key
* @return $this
*/
public function destroy($key = false)
{
if ($key) {
unset($this->_session->{$key});
} else {
$this->_session->unsetAll();
}
return $this;
}
示例14: logout
public function logout()
{
$owner = UserMap::getUser();
$dataToLog["owner_name"] = $owner["first_name"] . " " . $owner["last_name"];
$dataToLog["owner_id"] = $owner["owner_id"];
Mongo_Logger::logEvent($dataToLog, Mongo_Logs_LogFactory::LogoutOwer, Mongo_Interface::LOGS);
$session = new Zend_Session_Namespace("LeadsChat_Owner_Auth");
$session->unsetAll();
}
示例15: doDeleteAction
function doDeleteAction()
{
$batch = new Am_BatchProcessor(array($this, 'deleteUser'));
$context = null;
if (!$batch->run($context)) {
$this->sendDelRedirect();
}
$this->delDemoHistory($this->session->params['demo-id']);
$this->session->unsetAll();
$this->_redirect('admin-build-demo');
}