I am passing session data via a form and having trouble getting the session values to stick throughout the site. I need to use one header include file; this page is where the form goes to and what each page uses. So i need to check to see if a session is already there and if not make sure it gets the values from the form. It succesfully gets the form values but when i go to the next page it seems to just look for them again...
what i did was set a productsession value to 1 so if it returns that on subsequest pages it wouldnt look for the form values.
then i am setting "product" from the form to a session variable "product2"
<?php
if ( isset($SESSION['productsession']) )
{ }
else
{
session_register("productsession");
$productsession= "1";
session_register("product2");
$product2= $POST["product"];
}
?>
Any help would be appreciated!
Thanks!
e