When to start a session?

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

    You should start session after verifying user's information, and than you can set user's uid to session variable. which could be useful afterwards in loading user's personal information like profile,preferences etc.

    on register page i think you do not need to start session.

    Regards

提交回复
热议问题