[mapserver-users] how to disappear Warning: session_start() in the page?

elisabeth theresia dbee_kawai at yahoo.com
Fri Aug 13 03:34:00 EDT 2010

Hi all, i got message (for preview- i attached the page in 
attachment-sessionerror2.jpg) :  

Warning:  session_start() [function.session-start]:  Cannot send session cache 
limiter - headers already sent (output  started at 
I:\ms4w\apps\appweb\htdocs\index_spatialphtml.phtml:6) in 
I:\ms4w\apps\appweb\htdocs\common\session\session.php509 on line 

i have mapfile and template that already could show in the initialize page named 

Then my html + php = index_spatialphtml.phtml
i put <?php include ("index_cobacham.phtml")?> above the syntax html.

So, what should i do?

Thanks :)

here the index_spatialphtml.phtml


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
    font: 100% Verdana, Arial, Helvetica,  sans-serif;
     background: #666666;
    margin: 0; /* it's good practice to zero the margin and padding of the body 
element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The 
text is then set to the left aligned default in the #container selector */
    color: #000000;
    background-image: url(./images/Background.gif);
.oneColElsCtr #container {
    width: 46em;
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the 
page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body 
element. */
.oneColElsCtr #mainContent {
    padding: 0 20px; /* remember that padding is the  space inside the div box 
and margin is the space outside the div box */
.style1 {color: #FFFFFF}
a:link {
    color: #96711D;
    text-decoration: none;
a:visited {
    color: #A99559;
    text-decoration: none;
a:hover {
    color: #990000;
    text-decoration: underline;
a:active {
    color: #000000;
    text-decoration: none;
.style2 {color: #000000}

<body class="oneColElsCtr">

<div id="container">
  <div id="mainContent">
    <table width="713" border="1">
      <tr background="./images/Background.gif">
        <th width="709" scope="col" align="center"><p class="style1">PETA  
        <p class="style1"> KOTA SURAKARTA</p></th>
    <table width="717" border="1" cellpadding="0" cellspacing="0">
        <th width="138" scope="col"><div align="center"><a 
        <th width="171" scope="col"><div align="center"><a href="peta.html">Peta 
        <th width="127" scope="col"><div align="center"><a 
        <th width="147"  scope="col"><div align="center"><a 
href="tentang.html">Buku Tamu</a></div></th>
        <th width="122" scope="col"><div align="center"><a href="tentang.html" 
target="_blank" class="style2">Tentang</a></div></th>

   include ("./index_cobacham.phtml"); ?>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100813/d249abd8/attachment.html

More information about the mapserver-users mailing list