Hi all,
I have been working is a website for offering stuff.
I have been dealing with a problem from a while, and now I know why it is happening, but not how to solve it. Please help!!
Step 1
In the first page, some items are selected from a list using checkboxs. The result of this selection is stored in a variable called "check" (all checkboxs are within a form).
echo '<td><input type="checkbox" name="check[]" value='.$fila.'></td>';
Step 2
"check" is passed to the next page using a input type="submit", and recovered using POST:
$check = $_POST['check'];
Step 3
In this same page, a session variable is created, in order to use this values in the next pages:
$_SESSION['session_check']=$check;
This works perfectly most of the times, but in a few cases the session variable is empty in the next page, even when <?php session_start(); is used in both pages.
This makes the website stops running.
Could anyone help? Any idea about why the session variable is empty?
Thanks a lot!!



Reply With Quote


Bookmarks