[Notice] Undefined variable: _SESSION

GET /pl/zapytanie-ofertowe/?id=863

Line 172 in /stronasofexpl/mysite/code/cart.php

Source

163         parent::init();
164        // session_start();
165 
166         if (isset($_GET["id"]) && $_GET["id"] > 0)
167         {
168             $members = Product::get()->filter(array('ID' => $_GET["id"]));
169             if ($members->Count() == 1)
170             {
171                 //$koszyk = Session::get('cart');
172                 $koszyk = $_SESSION["cart"];
173                 if (!is_array($koszyk))
174                     $koszyk = array();
175 
176                 $bCart = false;
177 
178                 foreach ($koszyk as $key => $value)

Trace

GET /pl/zapytanie-ofertowe/?id=863

[Warning] Cannot modify header information - headers already sent by (output started at /stronasofexpl/framework/dev/DebugView.php:101)

GET /pl/zapytanie-ofertowe/?id=863

Line 194 in /stronasofexpl/mysite/code/cart.php

Source

185                 }
186 
187                 if (!$bCart)
188                 {
189                     $koszyk[$_GET["id"]] = 1;
190                 }
191 
192                 Session::set('cart', $koszyk);
193                 $_SESSION["cart"] = $koszyk;
194                 header("Location: ".$this->Link());
195                 exit();
196                 /* foreach($members as $member) {
197                   echo "<p>$member->Content</p>";
198                   }
199                  */
200             }

Trace