简体   繁体   中英

Session value not update after redirect the page

I have a form, when i submit that form it post to another page, on that page i will set value of post in session, on that time session show current value which is right, after executing the script, it will submit to another third arty tool, the response of this third party tool going to another page which is belong to our app, at that time session display past value, when I load or refresh the page, then it shows current value? I am stuck there, don't know why it's happening and what is the solution of that, I research lot but didn't get any success? if some one help me, I would be very thank full to him.

The third party response is in post the code of that page is

     if (isset($_POST)){
      var_debug($_SESSION['reservation']);
      exit();
     }

on that script it shows past values, when I refresh or reload the page then it shows current session value

Maybe you can provide a code snippet? Or maybe make your question a bit clearer (about the third party tool). Or maybe you can check this http://prajapatinilesh.wordpress.com/2007/09/14/how-to-solve-php-session-problem/ Hope this works!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM