當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Session_Namespace::unLock方法代碼示例

本文整理匯總了PHP中Zend_Session_Namespace::unLock方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Session_Namespace::unLock方法的具體用法?PHP Zend_Session_Namespace::unLock怎麽用?PHP Zend_Session_Namespace::unLock使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Session_Namespace的用法示例。


在下文中一共展示了Zend_Session_Namespace::unLock方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: logout

 public function logout()
 {
     $userProfileNamespace = new Zend_Session_Namespace('sesion');
     $userProfileNamespace->unLock();
     $log = new Application_Model_Logs();
     $log->crearLog('B');
     Zend_Session::destroy(true);
 }
開發者ID:renzot23,項目名稱:Los-Pinos-Virtual,代碼行數:8,代碼來源:Usuario.php

示例2: offsetSet

 /**
  * Defined by spl ArrayObject.
  * Here we are redefining the action to point to the session namespace
  * 
  * @param string $index
  * @return bool
  */
 public function offsetSet($index, $newval)
 {
     if (self::$_session->isLocked()) {
         self::$_session->unLock();
     }
     self::getSession()->{$index} = $newval;
     self::$_session->lock();
 }
開發者ID:laiello,項目名稱:zfx,代碼行數:15,代碼來源:Session.php

示例3: QoolInstaller

define('IN_QOOL', true);
error_reporting(E_ERROR);
//read the directory structure
require_once "simple_fn.php";
//check if the cms is installed
if (!($dirs = readDirFile())) {
    include "install/install.php";
    $installer = new QoolInstaller();
    $installer->start();
} else {
    setIncludePath($dirs);
    //d(get_include_path());
    require_once "Zend/Session.php";
    $namespace = new Zend_Session_Namespace('Qool');
    if ($namespace->isLocked()) {
        $namespace->unLock();
    }
    //get the folder if needed
    amiInAfolder($dirs);
    //if the user is not logged in we just set some typical rights
    givemeGuestRights();
    //set the include path
    //now read configuration
    require_once "Zend/Config/Xml.php";
    $config = new Zend_Config_Xml('config/config.xml');
    //just a simple definition to make things readable
    define('DIR_SEP', $config->host->separator);
    define('APPL_PATH', $config->host->absolute_path);
    $_SESSION['SITE_URL'] = $config->host->http . $config->host->subdomain . $config->host->domain . $config->host->folder;
    //read the database table names and prefix
    $database = new Zend_Config_Xml('config' . DIR_SEP . 'database.xml');
開發者ID:basdog22,項目名稱:Qool,代碼行數:31,代碼來源:index.php


注:本文中的Zend_Session_Namespace::unLock方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。