当前位置: 首页>>代码示例>>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;未经允许,请勿转载。