title: Having Problems with PHP sessions in Google APP Engine
body: <p>I am having three files... </p>
  
  <p>1st is <code>index.php</code></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Cyber Boy Test App&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Hello 
  &lt;br/&gt; This is Login System Test 
  &lt;br/&gt;
  &lt;form method="post"  action="logincheck.php"&gt;
  &lt;input type="text" name="username" /&gt;
  &lt;input type="password" name="password" /&gt;
  &lt;input type="submit" name="submit" /&gt;
  &lt;/form&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>2nd one is <code>logincheck.php</code></p>
  
  <pre><code>&lt;?php
  session_start();
  $finaluser=$_POST['username'];
  if($_SESSION['auth']=="yes")
  {
      header('Location: name.php');   
  }
  else
  {
      $connection=mysql_connect('localhost','root','')or die("Could not Connect to Database ");
      $db=mysql_select_db('test', $connection) or die(" Check the Database wrong database entered ");
      $sql="SELECT name from users WHERE username='$finaluser'";
      $result=mysql_query($sql) or die("Coudl not Execute the Query");
      $num=mysql_num_rows($result);
      $result=mysql_query($sql) or die("Coudl not Execute the Query2");
      $row=mysql_fetch_array($result);
      if($num==1)
      {
          echo "Login SuccesFull";
          $_SESSION['auth']="yes";
          $_SESSION['name']=$row['name'];
          echo '&lt;a href="name.php"&gt;To Check the Name of the User Click Here';
      }
      else
      {
          echo "Login Failed";
      }
  }
  ?&gt;
  </code></pre>
  
  <p>3rd file is <code>name.php</code></p>
  
  <pre><code>&lt;?php
  echo $_SESSION['name'];
  ?&gt;
  </code></pre>
  
  <p>When I submit the form it take me to <code>logincheck.php</code> page and When I click on the link , it take to me the <code>name.php</code> page..
  Problem is that, the name does not get printed.
  I know PHP well, but i new to Google App Engine... 
  and my <code>app.yaml</code> looks like this</p>
  
  <pre><code>application: testcboy
  version: 1
  runtime: php
  api_version: 1
  threadsafe: yes
  
  handlers:
  
  - url: /(.*)\.php
    script: \1.php
  
  - url: /.*
    script: index.php
  </code></pre>