Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/albraune/public_html/test.php:2) in /home/albraune/public_html/test.php on line 5
Now I searched for an answer to this problem and I found the answer. If I put session_start() between ob_start() and ob_end_clean() it wouldn't give me the warning, so now the beggining of my script looks like this:
Code: Select all
<?php
ob_start();
session_start();
ob_end_clean();
?>
Now I made a few test pages that had NO HTML in them so I didn't use ob_start() and ob_end_clean() and the variables in those test files worked fine. They got saved and restored in a different file flawlessly! But my code doesn't work for crap! Is ob_start() and ob_end_clean() screwing up my sessions? How should I do this the proper way?