keep user logged in when he visit the same page again?

后端 未结 4 1091
余生分开走
余生分开走 2021-02-06 14:47

currently im using session to log in the user. but when i close the browser and open it again i have to log in again. how do you keeo the user logged in in lets say 2 weeks.

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 15:08

    Yes. You use cookies to implement the "auto login" (or "remember me") functionality.

    This google search or SO search results, should point you to a right direction.

提交回复
热议问题