Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot send session cache limiter ? 1

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
I have a code start like that:

<?
---------------------------------
session_start();

include &quot;header.inc&quot;;
include &quot;mode.php&quot;;
---------------------------------

but if I use any html after or before the code I get the message:

Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache/htdocs/projectname/cart.php:2).

what is that meaning, thanks in advance for any help.


 
the session cache limiter is telling the client how to store the page (cache or no-cache) which would force a refresh of the page if hit again. you have sent something to the client machine before sending the cache instructions...this might be as simple as blank space at the head of the page or by calling the header function which sends some html to the client first Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Thank you Bastien, it works now...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top