ID: 28465
User updated by: dave at faf dot co dot nz
Reported By: dave at faf dot co dot nz
Status: Open
Bug Type: Session related
Operating System: linux
PHP Version: 4.3.4
New Comment:
Okay. I've figured it out. nasty linux issues. ( sorry. hate linux for
all the wrong reasons )
Please leave this here for others to find, i wouldn't have had the
trouble otherwise.
The require_once/include_once functions, when running in linux, must be
complete paths, not http's. my path to the included file worked
properly again when i used :
"/home/faf/faf.co.nz/profilerpe/" infront of the page name. Apparently
the page is run when you use an url, instead of being included.
Dave.
Previous Comments:
------------------------------------------------------------------------
[2004-05-21 03:43:50] dave at faf dot co dot nz
Description:
------------
When i use an include/require to load a success page ( in this case,
the list the "add" was called from ) the session variables are not
present. I have session_start() on each page, and if i call the pages
directly ( from a menu ) the sessions remain. This happends every time
i do this. I dont know if its a bug, but i have to control over the
webserver as its a web hosting plan.
Reproduce code:
---------------
<?php
session_start();
if (isset($_POST['submit']) {
//do saveing stuff
$OK = true;
}
if ($OK) {
//display form, submit button at bottom
//page calls itself, or rather, blank action
}
else {
require_once('list.php');
}
Expected result:
----------------
the original listing come back up, with the new addition.
Actual result:
--------------
the frame/table for the expected result, empty due to session vars not
relaying the clientid or any other for that matter.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28465&edit=1