Jump to content

Cannot send session cache limiter


claire

Recommended Posts

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/minipla/public_html/add.php:8) in /home/minipla/public_html/add.php on line 34

 

 

 

this is the page

 

<!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=iso-8859-1" />

<title>Home</title>

<link href="main.css" rel="stylesheet" type="text/css" />

 

<style type="text/css">

<!--use to move the whole content-->

body {

margin-top: 0px;

margin-bottom:20px;

}

 

#box2 #prodlist .proddiv {

}

.style1 {color: #000000}

.style3 {color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; }

.style5 {font-family: Geneva, Arial, Helvetica, sans-serif}

.style6 {font-family: Verdana, Arial, Helvetica, sans-serif}

a {

color: #666666;

}

.style7 {color: #333333}

</style>

</head>

<body><!--start main div - this centers content on the page-->

<div id="main">

 

<!--start header - contains company logo-->

<!--end header-->

<?php

session_id();

session_start();

//connect to the database

require_once('connection1.php');

 

//declare variables and assign them values from form

echo "<br />";

 

$qty =$_POST['qty'];

$prodnum =$_POST['prodnum'];

//assign the value of the session id to $sess

$sess =session_id();

 

/*

add new item to the temporary cart table of the database.  This is the table which is queried when you view the contents of your cart

*/

 

$query = "INSERT INTO carttemp (sess, quan, prodnum)

          VALUES ('$sess','$qty', '$prodnum')";

          $results = mysql_query($query)

          or die(mysql_error());

         

          //include the cart.php file in this page

          include("cart.php");       

?>

</body>

</html>

 

Link to comment
https://forums.phpfreaks.com/topic/56199-cannot-send-session-cache-limiter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.