When to start a session?

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

    Start a session on the page(s) that need to access session data. As part of a successful login, you should also call session_regenerate_id to prevent session fixation.

提交回复
热议问题