| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-05-21 03:49 UTC] dave at faf dot co dot nz
  [2004-05-21 05:33 UTC] magnus@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 06:00:01 2025 UTC | 
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.