本文整理汇总了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);
}
示例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();
}
示例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');