Going from database to sessions

后端 未结 2 1008
执念已碎
执念已碎 2021-01-29 15:17

Well I have my register done all nice, as required fields it holds your email, name, and password. When you log in it asks for your email and password.

When they log in

2条回答
  •  梦谈多话
    2021-01-29 15:54

    When the user logins in with their username/password and after verification of the information, query the database for their record. Set the returned value(s) into the session. If you are already getting information about the account, add a table join (if in separate tables) or the columns.

提交回复
热议问题