保持用户在再次访问同一页面时登录? [英] keep user logged in when he visit the same page again?
本文介绍了保持用户在再次访问同一页面时登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前使用会话登录用户。但是当我关闭浏览器并打开它,我再次登录。
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.
是通过cookie吗?
is it through cookies then?
推荐答案
是的。您使用Cookie来实现自动登录(或记住我)功能。
Yes. You use cookies to implement the "auto login" (or "remember me") functionality.
此 google search or SO 搜索结果,应该指向正确的方向。
This google search or SO search results, should point you to a right direction.
这篇关于保持用户在再次访问同一页面时登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文