Not all session variables stored?
Posted: Wed Jul 20, 2005 2:59 pm
This is really strange... The session doesn't seem to be storing data like it should.
On the first page I have this code:
which results in:
Yet, when I open a new window with the code
plus the above code, I get:
As you can see the session name and ID are the same in both, yet only the first session variable is being passed. Any ideas on why this might happen?
Thanks,
BAM
On the first page I have this code:
Code: Select all
print session_name()."<br>\n";
print session_id()."<br>\n<pre>";
print "SESSION\n";
var_dump(array_keys($_SESSION));
print "\nSESSION[0]\n";
var_dump(array_keys($_SESSION[0]));
print "</pre>\n";Code: Select all
PEWeb
1a5da917d0b08c4293f35e58f789ce09
SESSION
array(7) {
ї0]=>
string(2) "e;Qs"e;
ї1]=>
int(0)
ї2]=>
string(11) "e;ArrProdVals"e;
ї3]=>
string(13) "e;MouseOverText"e;
ї4]=>
string(8) "e;GraphMin"e;
ї5]=>
string(8) "e;GraphMax"e;
ї6]=>
string(5) "e;dist0"e;
}
SESSIONї0]
array(7) {
ї0]=>
string(7) "e;HashVar"e;
ї1]=>
string(7) "e;CSVdata"e;
ї2]=>
string(8) "e;FileName"e;
ї3]=>
string(5) "e;Image"e;
ї4]=>
string(5) "e;count"e;
ї5]=>
string(2) "e;DF"e;
ї6]=>
string(2) "e;DT"e;
}Code: Select all
session_name('PEWeb');
session_start();Code: Select all
PEWeb
1a5da917d0b08c4293f35e58f789ce09
SESSION
array(1) {
ї0]=>
string(2) "e;Qs"e;
}
SESSIONї0]
NULLThanks,
BAM