PHP Version 4.0.5 [Linux/Apache]
register_globals disabled
file1.php contains
====================
session_start();
$HTTP_SESSION_VARS["variable"] = "some value";
file1.php outputs HTML form which POSTs to file2.php
file2.php contains
====================
session_start();
...however, $HTTP_SESSION_VARS["variable"] is not undefined.
Appears to be related to the fact that register_globals are turned off. On other servers (where register_globals enabled), it is defined. BTW, not using $_SESSIONS to ensure portablity for versions of PHP before 4.1. Any PHP programmers have any clues as to how to preserve the session from one PHP to another when register_globals are disabled (now disabled by default in newer versions of PHP for security reasons)? And no, variable cannot be passed as form hidden input field - must be passed using PHP session.
----
Cheers,
Dan
Founder and CEO
LionsGate Creative
GoodPassRobot
Magelln
register_globals disabled
file1.php contains
====================
session_start();
$HTTP_SESSION_VARS["variable"] = "some value";
file1.php outputs HTML form which POSTs to file2.php
file2.php contains
====================
session_start();
...however, $HTTP_SESSION_VARS["variable"] is not undefined.
Appears to be related to the fact that register_globals are turned off. On other servers (where register_globals enabled), it is defined. BTW, not using $_SESSIONS to ensure portablity for versions of PHP before 4.1. Any PHP programmers have any clues as to how to preserve the session from one PHP to another when register_globals are disabled (now disabled by default in newer versions of PHP for security reasons)? And no, variable cannot be passed as form hidden input field - must be passed using PHP session.
----
Cheers,
Dan
Founder and CEO
LionsGate Creative
GoodPassRobot
Magelln