When to start a session?

后端 未结 6 1701
你的背包
你的背包 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:06

    You need to include session_start() on every page where you want the session data to be accessible. And it needs to be called before any other output has been done.

提交回复
热议问题