Session variables not persistent in IE6 Don't know what else to do
<p>My case is very simple, but I've read through many posts and tried the suggestions but can't seem to figure this one out....</p>

<p>session's variables are not passed to the next page in IE6.
Every page refresh creates a new session_id().</p>

<p>I'm using wamp/IE6, no software blocking cookies, and the privacy setting is set to Medium... I know i can pass the PHPSESSID to the next page, but security issues would not allow this method.</p>

<p>This code is an example of what I'm trying to do, it works fine in Firefox... here are the basics:</p>

<p>t1.php</p>

<pre><code>&lt;?php
session_start();
error_reporting(E_ALL);
ini_set("display_errors", -1);

$mysession = session_id();
print_r($mysession);

print "&lt;br&gt;";
$_SESSION['test']="test";
print "&lt;a href='t2.php'&gt;t2&lt;/a&gt;";
print "&lt;br&gt;";

$_SESSION['firstname'] = 'charlie';
print_r($_SESSION['firstname']);
print "&lt;br&gt;";
?&gt;
</code></pre>

<p>The output for t1.php i.e.</p>

<pre>
ing0t5cn53kfa2ptb6l8duppa6
t2
charlie 
</pre>

<p>t2.php</p>

<pre><code>&lt;?php
session_start();
$mysession = session_id();
print_r($mysession);

print "&lt;br&gt;";
print_r($_SESSION);

print "&lt;br&gt;";
print_r($_SESSION['test']);

print "&lt;br&gt;";
print_r($_SESSION['firstname']);
?&gt;
</code></pre>

<p>the output for t2.php i.e. </p>

<pre>
bh9ueqb61gk3mriq5f3bem4jj1
Array ( ) 
Notice: Undefined index: test in C:\wamp\www\test\t2.php on line 10
Notice: Undefined index: firstname in C:\wamp\www\test\t2.php on line 13
</pre>

<p>IE6 creates a new session_id in the next page, so the session variables are tagged with undefined index...</p>

<p>Can someone show me how to resolved this? thanks</p>
