View Single Post
  #1 (permalink)  
Old 05-06-2008, 03:11 PM
mgorgone mgorgone is offline
Newbie
 
Join Date: May 2008
Posts: 2
Rep Power: 0
mgorgone is on a distinguished road
Default "Cannot send session cache limiter - headers already sent"

Hi All,

I've been trying to figure this one out and everything on the web
points to "whitespace" being sent to the browser before the call to
session_start(); So here's my problem. I have two PHP pages,
searchresults.php and shoppingcart.php. The searchresults.php page
doesn't have any problems and runs fine. The shoppingcart.php page is
where I get the "Cannot send..." error. However, I created the
shoppingcart.php FROM the searchresults.php page which is, as I said
before, working without error. Both pages have calls to "echo" so I
just don't get why I'm having an issue with the shoppingcart.php page
when the page it was created from (searchresults.php) doesn't have any
problems.

The tops of the pages are identical as shown below:

searchresults.php
====
PHP Code:
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="css/movieposters.css" rel="stylesheet" type="text/css" />
        <link href="css/navigation.css" rel="stylesheet" type="text/css" />
        <script type="text/JavaScript" src="js/validation.js"></script>
        <title>Buy Movie Posters</title>
</head>
<body>
====

shoppingcart.php
====
PHP Code:
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="css/movieposters.css" rel="stylesheet" type="text/css" />
        <link href="css/navigation.css" rel="stylesheet" type="text/css" />
        <script type="text/JavaScript" src="js/validation.js"></script>
        <title>Buy Movie Posters</title>
</head>
<body>
====

Thanks in advance for any help you can offer.

Cheers,

Mike

Last edited by Jordan; 05-06-2008 at 04:26 PM. Reason: Added code tags
Reply With Quote

Sponsored Links