Hi folks,
I am working with PHP 4.3.8, Linux, and Apache 1.3.31 on a third-level or
sub domain.
The following code will diplay foo, session_id(), and increment count over
refreshes:
<?php
session_start() ;
$_SESSION['foo'] = 'bar';
$_SESSION['count']++;
print_r($_SESSI ON);
echo session_id();
?>
<a href="/test2.php">Next Page</a>
But using the link to go to test2.php shows $_SESSION as undefined, not even
an empty array.
<?php
print_r($_SESSI ON);
echo 'Foo is registered? ' . session_is_regi stered('foo');
echo session_id();
?>
Any advice? The docs are quite clear that using session_start() should
produce a persistant session for that browser. In IE the address of the
second page shows no query string. But NN 7 magically shows
da7 BUT the page itself does not have the session data in either browser.
Help?
TIA,
jg
I am working with PHP 4.3.8, Linux, and Apache 1.3.31 on a third-level or
sub domain.
The following code will diplay foo, session_id(), and increment count over
refreshes:
<?php
session_start() ;
$_SESSION['foo'] = 'bar';
$_SESSION['count']++;
print_r($_SESSI ON);
echo session_id();
?>
<a href="/test2.php">Next Page</a>
But using the link to go to test2.php shows $_SESSION as undefined, not even
an empty array.
<?php
print_r($_SESSI ON);
echo 'Foo is registered? ' . session_is_regi stered('foo');
echo session_id();
?>
Any advice? The docs are quite clear that using session_start() should
produce a persistant session for that browser. In IE the address of the
second page shows no query string. But NN 7 magically shows
da7 BUT the page itself does not have the session data in either browser.
Help?
TIA,
jg
Comment