Session Warnings and cache_limiter warning
Posted: Sun Nov 02, 2003 12:36 pm
Hey below I get this error message the first time i Login.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/local/apache/www/www.everto.com/htdocs/admin/dvdtemp3.php:2) in /usr/local/apache/www/www.everto.com/htdocs/admin/includes/functions.inc.php on line 96
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache/www/www.everto.com/htdocs/admin/dvdtemp3.php:2) in /usr/local/apache/www/www.everto.com/htdocs/admin/includes/functions.inc.php on line 96
Below is my session statement:
session_cache_limiter('nocache');
session_start();
$_SESSION[admin_id] = $id;
$_SESSION[valid] = "YES";
$_SESSION[username] = $loginuser;
$_SESSION[pass] = $loginpassword;
Am I missing something? This works fine on another server but I think its PHP Version is slightly older, but should that make a difference? Any one know how to get rid of those warnings?
Thanks in advance
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/local/apache/www/www.everto.com/htdocs/admin/dvdtemp3.php:2) in /usr/local/apache/www/www.everto.com/htdocs/admin/includes/functions.inc.php on line 96
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache/www/www.everto.com/htdocs/admin/dvdtemp3.php:2) in /usr/local/apache/www/www.everto.com/htdocs/admin/includes/functions.inc.php on line 96
Below is my session statement:
session_cache_limiter('nocache');
session_start();
$_SESSION[admin_id] = $id;
$_SESSION[valid] = "YES";
$_SESSION[username] = $loginuser;
$_SESSION[pass] = $loginpassword;
Am I missing something? This works fine on another server but I think its PHP Version is slightly older, but should that make a difference? Any one know how to get rid of those warnings?
Thanks in advance