Wuu Posted January 7, 2009 Report Share Posted January 7, 2009 if(!session_id()){ session_start(); } Nepalīdz ,vai īstenībā vienkārši nestrādā :) Link to comment Share on other sites More sharing options...
indoom Posted January 7, 2009 Report Share Posted January 7, 2009 if (!isset($_SESSION)) { session_start(); } Link to comment Share on other sites More sharing options...
Wuu Posted January 7, 2009 Author Report Share Posted January 7, 2009 Nepalīdz... Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/killer/www/index.php:8) in /home/killer/www/registry.php on line 3 Reg Link to comment Share on other sites More sharing options...
bubu Posted January 7, 2009 Report Share Posted January 7, 2009 http://php.lv/f/index.php?showtopic=7294 Link to comment Share on other sites More sharing options...
Wuu Posted January 7, 2009 Author Report Share Posted January 7, 2009 Atbildi neatradu! Es lietoju Ajaxu lai ielādētu saturu ,un lai ajax ielādētajās lapas būtu pieejami $_SESSION dati ir jāsāk sessija ,bet ja scripts tiek ielēdāts caur include() man sesiju sākt nevajag! Link to comment Share on other sites More sharing options...
bubu Posted January 7, 2009 Report Share Posted January 7, 2009 Atbilde ir tavā paša iepostētājā kļūdas paziņojumā: output started at /home/killer/www/index.php:8) in /home/killer/www/registry.php on line 3 Tu registry.php failā 3. rindā taisies izvadīt headerus (sākt sesiju), taču to nevar darīt, jo index.php fails jau 8. rindā ir izdarījs kautkādu output. Izlasi AndraP rakstīto uzmanīgāk. Link to comment Share on other sites More sharing options...
indoom Posted January 7, 2009 Report Share Posted January 7, 2009 tad jau tev drīzāk vajag headers_sent() funkciju http://lv.php.net/manual/en/function.headers-sent.php Link to comment Share on other sites More sharing options...
Wuu Posted January 8, 2009 Author Report Share Posted January 8, 2009 Paldies indoom strādā! Link to comment Share on other sites More sharing options...
Burvis Posted March 5, 2009 Report Share Posted March 5, 2009 $_SESSION['verify'] = "boom"; if (isset($_SESSION['verify'])) { echo "ON"; } else { echo "OFF"; } Link to comment Share on other sites More sharing options...
Recommended Posts