Hello folks, I'm wondering if anyone has experienced this before. I'm trying to get sessions working for a small utility site I've developed. I'm using PHP Vers 4.0.2 (I know its an oldie but I don't know how to update it without crashing my entire server) on a Cobalt RAQ3 (RedHat Linux).
The url (if you're curious) is http://www.amazon-networks.com/bms The steps: 1. Someone goes to the homepage selects a name from the drop-down and hits 'Submit'. 2. The form on the homepage calls my main script (decide.php). 3. The decide.php script generates an instructions page and places the person's $name and $department on the generated page (This Works). 4. Once the person reads the instructions they are told to hit the 'Proceed' button and when they click 'Proceed,'this action (again) calls the decide.php page (the very same script that created this page). 5. What happens next is another page is created by the decide.php script and displayed but the $name and $department fields have now lost their value (even though they worked in Step #3 above). If this is confusing you can see how it works at: http://www.amazon-networks.com/bms Below is how the decide.php script registers the variables. <? session_start(); // Below I'm setting up the Date and Expiration variables. // Below I'm setting up the Date and Expiration variables. // Below I'm setting up the Date and Expiration variables. $expire = date("D, d M Y", mktime(0,0,0,date("n"),date("d")+14,date("Y"))); $date = date("D, d M Y", mktime(0,0,0,date("n"),date("d"),date("Y"))); header ("Expires: ".$expire." 05:00:00 GMT"); //header ("Expires: Mon, 26 Jul 2010 05:00:00 GMT"); // Below I'm registering all of the varibles that I will use for this application. // Below I'm registering all of the varibles that I will use for this application. // Below I'm registering all of the varibles that I will use for this application. if (!$phpsessid) { session_register("$employee"); session_register("$employee_f_name"); session_register("$employee_l_name"); session_register("$employee_full_name"); session_register("$department"); session_register("$date"); session_register("$expire"); session_register("$col1"); session_register("$col2"); session_register("$col3"); session_register("$col4"); session_register("$col5"); session_register("$col6"); session_register("$row1"); session_register("$row2"); session_register("$row3"); session_register("$row4"); session_register("$row5"); session_register("$row6"); session_register("$row_1_title"); session_register("$row_2_title"); session_register("$row_3_title"); session_register("$row_4_title"); session_register("$row_5_title"); session_register("$row_6_title"); session_register("$where_from"); } ?> Any suggestions anyone can offer will be greatly appreciated. Thank You, Mario A. Salinas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php