PHP warning

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

/home3/jilan/public_html/beta_thora_bachke_rahna/kya_hal_hai_beta/framework/web/CHttpSession.php(340)

328      * @return integer the number of seconds after which data will be seen as 'garbage' and cleaned up, defaults to 1440 seconds.
329      */
330     public function getTimeout()
331     {
332         return (int)ini_get('session.gc_maxlifetime');
333     }
334 
335     /**
336      * @param integer $value the number of seconds after which data will be seen as 'garbage' and cleaned up
337      */
338     public function setTimeout($value)
339     {
340         ini_set('session.gc_maxlifetime',$value);
341     }
342 
343     /**
344      * Session open handler.
345      * This method should be overridden if {@link useCustomStorage} is set true.
346      * Do not call this method directly.
347      * @param string $savePath session save path
348      * @param string $sessionName session name
349      * @return boolean whether session is opened successfully
350      */
351     public function openSession($savePath,$sessionName)
352     {

Stack Trace

#18
+
 /home3/jilan/public_html/index.php(22): CApplication->run()
17     defined('YII_DEBUG') or define('YII_DEBUG', true);
18 // specify how many levels of call stack should be shown in each log message
19     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
20 
21     require_once($yii);
22     Yii::createWebApplication($config)->run();
23 }  
2026-03-11 17:25:02 Apache Yii Framework/1.1.10