Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/110mb.com/h/y/b/r/i/d/t/u/hybridtube/htdocs/settings.php:2) in /www/110mb.com/h/y/b/r/i/d/t/u/hybridtube/htdocs/login.php on line 14
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/110mb.com/h/y/b/r/i/d/t/u/hybridtube/htdocs/settings.php:2) in /www/110mb.com/h/y/b/r/i/d/t/u/hybridtube/htdocs/login.php on line 14
Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/h/y/b/r/i/d/t/u/hybridtube/htdocs/settings.php:2) in /www/110mb.com/h/y/b/r/i/d/t/u/hybridtube/htdocs/login.php on line 16
whats dose this mean
it means the session has been started after php has sent output to the browser.
start the session prior to the output if at all possible, because the output buffering mentioned adds considerably to the server resource usage.
its more efficient coding practices.
start sessions immediately in app (pre include/required or in an include/required class that always used, like a config file or security class) script is usually a good practice.
also, using an arguement in includes and requireds is a good thing just in case one is called that starts a session if the session is already started, then it wont throw up an error.
example:
<?php
#
# starts a session only is one isnt already set/started
#
if (!isset($_SESSION))
{
session_start();
}
?>
... can prevent many session already started errors when working with includes and requireds start sessions in them if they were already started previously