title: PHP Centos : Session not able to store
body: <p>Hi Today I am facing one strange Problem 
  After login validation I am storing the user name in session and redirecting it to some other page .</p>
  
  <p>Validation page .</p>
  
  <pre><code>if (mysql_num_rows($sqlQuery) == 1) {
      session_start();
     $_SESSION['username']  = $login;
     print $_SESSION['username'];
     header("Location: dialout.php");
  
  }
  </code></pre>
  
  <p>.
  on dialout.php I am trying to print session like </p>
  
  <pre><code>var_dump($_SESSION);
  </code></pre>
  
  <p>But it doesn't print anything .</p>
  
  <p>some googling I found that problem might be in writing the session directory .</p>
  
  <p>So to check that I wrote one script .</p>
  
  <pre><code>print session_save_path();
  if (!is_writable(session_save_path())) {
      echo 'Session path "'.session_save_path().'" is not writable for PHP!'; 
      }
  else{
   echo "writable -------------";
  }
  </code></pre>
  
  <p>From above script I am getting writable.</p>
  
  <p>Just wondering why my I am unable to access the session on dialout.php page </p>