Hiya..
Am having a few challenges with maintaining current session state when generating content dynamically via a 404 handler script..
Platform:
RH 7.0
Apache 1.3.12
PHP 4.0.4pl1 (As Loadable module .so)
--enable-trans-sid compiled in ( phpinfo() )
--use-trans-sid = 1 (php.ini)
--use cookies = 0 (php.ini)
Can maintain session across any other pages fine, but when using ...
//Snip from 404.php (ErrorDocument for Virtual Host)
<?PHP
include("common.lib");
session_start($PHPSESSID);
if(!$sess_vars){
logout();
} else {
showpage();
}
?>
Instead of carrying over session (PHPSESSID) from URL, it starts a new session effectively logging everyone out
if I remove the test for $sessvars,
The page displays fine but with new session_id appended to each URL NOT the one received !
Any Ideas?
Ciao
<a>