title: PHP session problem
body: <p>I am using session_start() function in config.php file and this file is included in all files. in my add_page.php page, i am submitting a form and saving a message(in submit action) in the session, and then re-directing to index.php page(using header('location:...')). but after re-directing, i am not getting the message from the session. the other session data exist like-username, logged_in, etc. any idea??? </p>
  
  <p>Code bellow(add_news.php). after submitting form, it re-directs to news.php. config.php file has session_start() function at the top and it is included in every page:</p>
  
  <pre><code>    &lt;?php
  include('../include/config.php');
  
  //submit edit data
  if (isset($_POST['submit_edit'])) {
      $news_head = stripslashes(trim($_POST['news_head']));
      $news_details = $_POST['news_details'];
      $news_special = ($_POST['news_special']=='')?'0':'1';
      $news_status = ($_POST['news_status']=='')?'0':'1';
      $data = array('news_head'=&gt;$news_head,
                  'news_details'=&gt;$news_details,
                  'news_special'=&gt;$news_special,
                  'news_status'=&gt;$news_status);
  
      $clause = "news_id = '".$_POST['news_id']."'";
      $response = update_data('news', $data, $clause);
      if($response)
      $_SESSION['success_msg'] = "News updated successfully.";
  }
  //submit edit data end
  ?&gt;
  &lt;form action="add_news.php" method="post" id="add_news_form"&gt;
  &lt;input type="hidden" name="news_id" value="&lt;?php echo $news_id ?&gt;" /&gt;
  &lt;table width="100%" border="0" cellspacing="4" cellpadding="4"&gt;
  
    &lt;tr&gt;
      &lt;td&gt;News Heading&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" name="news_head" id="news_head" class="required" value="&lt;?php echo $news_head ?&gt;" size="100" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
  
    &lt;tr&gt;
      &lt;td&gt;News Details&lt;/td&gt;
      &lt;td&gt;&lt;textarea name="news_details" id="news_details" class="editor required" rows="7" cols="60"&gt;&lt;?php echo trim(stripslashes($news_details)); ?&gt;&lt;/textarea&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Special News&lt;/td&gt;
      &lt;td&gt;&lt;input type="checkbox" name="news_special" id="news_special" value="1" &lt;?php if($news_special=='1') echo 'checked="checked"'?&gt; /&gt;
  [ Checked means special ]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Status Status&lt;/td&gt;
      &lt;td&gt;&lt;input type="checkbox" name="news_status" id="news_status" value="1" &lt;?php if($news_status=='1') echo 'checked="checked"'?&gt; /&gt; 
      [ Checked means published ]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;input type="submit" value="Submit" &lt;?php if($_REQUEST['news_id']!="" &amp;&amp; $_REQUEST['action']=='edit') echo 'name="submit_edit"'; else echo 'name="submit"'; ?&gt; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p></p>