PHP notice

session_start(): Ignoring session_start() because a session is already active

/home/GIR/buggy-motor.ru/protected/controllers/CartController.php(6)

01 <?php
02 
03 include_once Yii::app()->basePath . '/modules/catalog/models/CatCategory.php';
04 include_once Yii::app()->basePath . '/modules/catalog/models/CatItem.php';
05 include_once Yii::app()->basePath . '/modules/catalog/models/CatItemsToCat.php';
06 session_start();
07 
08 if (!isset($_SESSION['cart'])) {
09     $_SESSION['cart'] = array();
10 }
11 class CartController extends Controller
12 {
13 
14     /**
15      * This is the default 'index' action that is invoked
16      * when an action is not explicitly requested by users.
17      */
18 

Stack Trace

#0
+
 /home/GIR/buggy-motor.ru/protected/controllers/CartController.php(6): session_start()
01 <?php
02 
03 include_once Yii::app()->basePath . '/modules/catalog/models/CatCategory.php';
04 include_once Yii::app()->basePath . '/modules/catalog/models/CatItem.php';
05 include_once Yii::app()->basePath . '/modules/catalog/models/CatItemsToCat.php';
06 session_start();
07 
08 if (!isset($_SESSION['cart'])) {
09     $_SESSION['cart'] = array();
10 }
11 class CartController extends Controller
#5
+
 /home/GIR/buggy-motor.ru/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-19 13:59:17 nginx/1.24.0 Yii Framework/1.1.30-dev