I have some problems with session_start ();
I know that nothing should be output before session_start (); Statement
But I can not find the problem in my Script
index.php:
<?php session_start(); include('functions.php'); if(!is_logged_in(session_id())){ include('form.php'); }else{ ?> <html> <head> <title></title> </head> <body> </body> </html> <?php } ?>
But I always follow the error:
Warning: session_start () [function.session-start]: Unable to send session cookie - headers already sent (output started from C: \ XAMPP \ HTDOCS \ fertige_scan \ index.php: 1) to C: \ XAMPP \ HTDOCS \ fertige_scan \ index.php on line 1
Hope you can help me :)
Jings source share