Ive got multiple pages where I want to use the session store for error processing and to keep the login details variables of the client. It looks something like this:
page 1 = login form
page 2 = update or insert client details form
page 4 = insert
page 5 = reciept
The problem is, if I delete page one session, page two works, and if page two session are delete, page one works.
I cant seem to get both working at the same time. Ive used the following at the top of my script on both pages with both forms (i.e login and update/insert are link to a $formVars assoc array and both call a function error )
session_start();
if(!session_is_registered("formVars"))
session_register("formVars");
$error = array();
if(!session_is_registered("error"))
session_register("error");
My second question would be, how many variables can you have in one session!
Thanks for the help in advance