记住登录页面中的代码 [英] Remember me code in login page

查看:61
本文介绍了记住登录页面中的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用c#和sql数据库创建了登录页面。

使用sql存储过程和c#

解决方案<是否在登录页面中记住了我的选项代码/ div>

你为什么要这样做?



想一想:如果你把记住我的东西存放在数据库里,你怎么样?告诉哪个用户你应该自动登录,除非他们告诉你他们是谁?这真的打败了记住我的目的,真的......



将它存储在Cookie中,就像其他人一样!


i have created login page using c# and sql database.
Is there any code for remember me option in login page using sql stored procedure and c#

解决方案

Why would you want to do that?

Think about it: if you store the "remember me" stuff in the database, how do you tell which user you are supposed to be logging in automatically, unless they tell you who they are? Which defeats the purpose of a "remember me" rather a lot, really...

Store it in a Cookie instead, like everyone else does!


这篇关于记住登录页面中的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆