session woes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
demosthenes
Forum Newbie
Posts: 2
Joined: Thu Oct 26, 2006 8:27 am

session woes

Post by demosthenes »

Ok so I have a php page with three links on it. Each link takes you to another php page, but opens it in a new window using target="_new". Each php page starts like this:

<?php

session_start();
error_reporting(0);

?>

The first two display just fine. But when I click on the 3rd link I get this error message at the top of the page.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/c802web/public_html/CFE/Print_Page03.php:1) in /home/c802web/public_html/CFE/Print_Page03.php on line 3

Any ideas?

thank,

demosthenes
tbrown1
Forum Newbie
Posts: 17
Joined: Wed Oct 25, 2006 10:58 am

Post by tbrown1 »

Are there any blank lines before the <?php try getting rid of them and see what happens
Post Reply