main APPLICATION_ENV: PHP warning

PHP warning

ini_set(): Session ini settings cannot be changed after headers have already been sent

/home1/japankar/public_html/drs/tmp/yii/framework/web/CHttpSession.php(88)

076      */
077     public $autoStart=true;
078 
079     /**
080      * Initializes the application component.
081      * This method is required by IApplicationComponent and is invoked by application.
082      */
083     public function init()
084     {
085         parent::init();
086 
087         // default session gc probability is 1%
088         ini_set('session.gc_probability',1);
089         ini_set('session.gc_divisor',100);
090 
091         if($this->autoStart)
092             $this->open();
093         register_shutdown_function(array($this,'close'));
094     }
095 
096     /**
097      * Returns a value indicating whether to use custom session storage.
098      * This method should be overriden to return true if custom session storage handler should be used.
099      * If returning true, make sure the methods {@link openSession}, {@link closeSession}, {@link readSession},
100      * {@link writeSession}, {@link destroySession}, and {@link gcSession} are overridden in child

Stack Trace

#6
+
 /home1/japankar/public_html/drs/web/protected/controllers/SiteController.php(36): CModule->__get("user")
31             
32             // renders the view file 'protected/views/site/index.php' 
33         // using the default layout 'protected/views/layouts/main.php' 
34         //$this->render('index'); 
35          
36         if(Yii::app()->user->isGuest) {
37                     $this->actionLogin(); 
38                 }            
39         else 
40         {
41                     // renders the view file 'protected/views/site/index.php'
#14
+
 /home1/japankar/public_html/drs/web/index.php(35): CApplication->run()
30 $cs->scriptMap=array(
31     'jquery.js'=>false,
32     'jquery.min.js'=>false,
33 );
34 
35 $app->run();
2024-12-23 09:51:47 Apache Yii Framework/1.1.13