Session variables are not persisting between page loads

前端 未结 11 1417
梦谈多话
梦谈多话 2020-12-10 11:12

Can someone tell me why the session vars are not passing between pages? They were working up to 2 days ago. Now its not? There is a third party system that logs users in b

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-10 11:23

    In my case the solution was to have different parameter names in $_GET and $_SESSION.

    $_SESSION["businessid"] = $_GET["businessid"]; // Leads to problems with session. $_SESSION["business_id"] = $_GET["businessid"]; //Works perfectly.

    It sounds strange but that's my experience.

提交回复
热议问题