When to start a session?

后端 未结 6 1645
你的背包
你的背包 2021-01-16 14:28

I have a system that requires the user to login (or register) for an account before they are able to access their Member \'dashboard\'.

My question is... at what poi

6条回答
  •  无人共我
    2021-01-16 15:28

    Your session_start() will be called on each and every page that is secure and that is accessed after authentication. You will put the values in session both in login and register pages as they authenticate user. But once the user is verified, now you have to put this function on all pages which needs authentication of the user.

提交回复
热议问题