$_SESSION variable not passing and no clue why? it sets then doesn't pass

前端 未结 4 918
无人共我
无人共我 2021-01-26 17:53

I have a login script coded in php and mysqli. upon submission and successful authentication it redirects to success.php to write sessions. my success page looks like this.

4条回答
  •  庸人自扰
    2021-01-26 18:33

    You need session_start() on all pages using $_SESSION

      

    Also...are you sure that $_GET['id'] has a value in it?

    And....is your form using POST or GET?

    Ive made that silly mistake before , where form was using POST and I was retrieving variable with GET and getting frustrated. Just a possibility

提交回复
热议问题