~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/web/CHttpSession.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *
5
5
 * @author Qiang Xue <qiang.xue@gmail.com>
6
6
 * @link http://www.yiiframework.com/
7
 
 * @copyright Copyright &copy; 2008-2009 Yii Software LLC
 
7
 * @copyright Copyright &copy; 2008-2010 Yii Software LLC
8
8
 * @license http://www.yiiframework.com/license/
9
9
 */
10
10
 
52
52
 * {@link CWebApplication::getSession()}.
53
53
 *
54
54
 * @author Qiang Xue <qiang.xue@gmail.com>
55
 
 * @version $Id: CHttpSession.php 967 2009-04-29 12:30:14Z qiang.xue $
 
55
 * @version $Id: CHttpSession.php 1678 2010-01-07 21:02:00Z qiang.xue $
56
56
 * @package system.web
57
57
 * @since 1.0
58
58
 */
95
95
         */
96
96
        public function open()
97
97
        {
98
 
                if(session_id()==='')
99
 
                {
100
 
                        if($this->getUseCustomStorage())
101
 
                                session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession'));
102
 
                        session_start();
103
 
                }
 
98
                if($this->getUseCustomStorage())
 
99
                        @session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession'));
 
100
                @session_start();
104
101
        }
105
102
 
106
103
        /**