Page 1 of 1

Session Warnings and cache_limiter warning

Posted: Sun Nov 02, 2003 12:36 pm
by EverToDesign
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

Posted: Sun Nov 02, 2003 1:04 pm
by Cruzado_Mainfrm
session_cache_limiter('nocache'); is returning a warning or error, u must write:
@session_cache_limiter('nocache');

Posted: Sun Nov 02, 2003 7:03 pm
by m3mn0n
[big_search]php sessions[/big_search]