“Keep Me Logged In” - the best approach

后端 未结 12 1691
Happy的楠姐
Happy的楠姐 2020-11-22 08:30

My web application uses sessions to store information about the user once they\'ve logged in, and to maintain that information as they travel from page to page within the ap

12条回答
  •  没有蜡笔的小新
    2020-11-22 08:56

    Generate a hash, maybe with a secret only you know, then store it in your DB so it can be associated with the user. Should work quite well.

提交回复
热议问题