I am getting this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache/php/includes/2004server.inc:24) in /usr/local/apache/php/includes/restricted.inc on line 5
I have ob_start(); and ob_end_flush(); at the beginning and end of restricted.inc. Like the following. Could someone explain why I am still getting the above error. 2004server.inc is just the mysql server info.... TIA <? ob_start(); session_start(); if(!isset($_SESSION['logged'])) { $_SESSION['goto'] = $_SERVER['REQUEST_URI']; $url = "http://www.mysite.net/login/login.php"; header("Location: $url"); } ob_end_flush(); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php