Session Not Updating until 2nd Submit
Posted: Wed Jan 25, 2006 3:06 pm
UPDATE:
my question is now why is this the case. I have provided all code and explaination below in my response, but I also found the fix, though I do not understand why this is the fix.
This was on the 2nd page only. I added it to the first page also and the problem was fixed.
Does SESSION take priority over POST when both exist? I am not sure what happens exactly, except now all POST variables are converted to SESSION varaibles before anything else happens, and that seemed to have fixed the problem. I'd like to know why that did though so I can understand it more fully.
Oh and thanks feyd, when I was posting the code as you asked, is when I noticed I only had the post to session conversion on one page, and curious if that could be the issue, tried it on both.
my question is now why is this the case. I have provided all code and explaination below in my response, but I also found the fix, though I do not understand why this is the fix.
Code: Select all
$_SESSION = $_POST;Does SESSION take priority over POST when both exist? I am not sure what happens exactly, except now all POST variables are converted to SESSION varaibles before anything else happens, and that seemed to have fixed the problem. I'd like to know why that did though so I can understand it more fully.
Oh and thanks feyd, when I was posting the code as you asked, is when I noticed I only had the post to session conversion on one page, and curious if that could be the issue, tried it on both.