title: PHP session is not working
body: <p>I am working with wamp2.0 - PHP 5.3, apache 2.2.11 but my sessions are not storing data.</p>
  
  <p>I have a page that accepts a parameter, which (simplified version) I wanna store in a session, so when I come to</p>
  
  <pre><code>http://www.example.com/home.php?sessid=db_session_id
  </code></pre>
  
  <p>The script looks like:</p>
  
  <pre><code>session_start();
  
  $sessid = @$_GET['sessid'];
  if ($sessid) {
    $_SESSION['sessid'] = $sessid;
  }
  var_dump($_SESSION);
  </code></pre>
  
  <p>and outputs:</p>
  
  <pre><code>array(1) { [0]=&gt; string(13) "db_session_id" } 
  </code></pre>
  
  <p>which is fine, but then, when I go to <a href="http://www.example.com/home.php" rel="nofollow">link</a> (without the sessid parameter) the <code>$_SESSION</code> array is empty. I've event tried to comment the <code>$_SESSION['sessid'] = $sessid;</code> line before going to the page without the parameter, but still it didin't work.</p>
  
  <p>I've checked the <code>session_id()</code> output and the session id remains the same.</p>
  
  <p>Session settings from phpinfo()</p>
  
  <pre><code>Session Support enabled
  Registered save handlers    files user
  Registered serializer handlers  php php_binary wddx
  
  Directive   Local Value Master Value
  session.auto_start  Off Off
  session.bug_compat_42   On  On
  session.bug_compat_warn On  On
  session.cache_expire    180 180
  session.cache_limiter   nocache nocache
  session.cookie_domain   no value    no value
  session.cookie_httponly Off Off
  session.cookie_lifetime 0   0
  session.cookie_path /   /
  session.cookie_secure   Off Off
  session.entropy_file    no value    no value
  session.entropy_length  0   0
  session.gc_divisor  1000    1000
  session.gc_maxlifetime  1440    1440
  session.gc_probability  1   1
  session.hash_bits_per_character 5   5
  session.hash_function   0   0
  session.name    PHPSESSID   PHPSESSID
  session.referer_check   no value    no value
  session.save_handler    files   files
  session.save_path   c:/wamp/tmp c:/wamp/tmp
  session.serialize_handler   php php
  session.use_cookies On  On
  session.use_only_cookies    On  On
  session.use_trans_sid   0   0
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <blockquote>
    <p>The sessions are deleted by an iframe. I don't know why, but when
    commented, the sessions work fine. Thing is, the iframe has to stay
    there (which of course is bad, but I can't do anything about it).
    Well...do you know about any workarounds to get the sessions working
    with an iframe?</p>
  </blockquote>