web/lib/Zend/Session/Abstract.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * obtain it through the world-wide-web, please send an email
    13  * obtain it through the world-wide-web, please send an email
    14  * to license@zend.com so we can send you a copy immediately.
    14  * to license@zend.com so we can send you a copy immediately.
    15  *
    15  *
    16  * @category   Zend
    16  * @category   Zend
    17  * @package    Zend_Session
    17  * @package    Zend_Session
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
    21  * @since      Preview Release 0.2
    21  * @since      Preview Release 0.2
    22  */
    22  */
    23 
    23 
    24 
    24 
    25 /**
    25 /**
    26  * Zend_Session_Abstract
    26  * Zend_Session_Abstract
    27  *
    27  *
    28  * @category   Zend
    28  * @category   Zend
    29  * @package    Zend_Session
    29  * @package    Zend_Session
    30  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    30  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    31  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    31  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    32  */
    32  */
    33 abstract class Zend_Session_Abstract
    33 abstract class Zend_Session_Abstract
    34 {
    34 {
    35     /**
    35     /**
   118         if ($name === '') {
   118         if ($name === '') {
   119             unset($_SESSION[$namespace]);
   119             unset($_SESSION[$namespace]);
   120             unset(self::$_expiringData[$namespace]);
   120             unset(self::$_expiringData[$namespace]);
   121         } else {
   121         } else {
   122             unset($_SESSION[$namespace][$name]);
   122             unset($_SESSION[$namespace][$name]);
   123             unset(self::$_expiringData[$namespace]);
   123             unset(self::$_expiringData[$namespace][$name]);
   124         }
   124         }
   125 
   125 
   126         // if we remove the last value, remove namespace.
   126         // if we remove the last value, remove namespace.
   127         if (empty($_SESSION[$namespace])) {
   127         if (empty($_SESSION[$namespace])) {
   128             unset($_SESSION[$namespace]);
   128             unset($_SESSION[$namespace]);