如何在asp.net c#中使用身份验证而不是会话 [英] How to use authentication instead of sessions in asp.net c#

查看:86
本文介绍了如何在asp.net c#中使用身份验证而不是会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone



我需要一个登录表单的代码,在实体框架中使用asp.net进行一种身份验证c#



目前我正在使用会话来存储所有网页中的用户名(welcome:kselva)来显示我的名字,所以我需要因为性能而避免会话,是否有任何选项用于登录页面的身份验证实体框架和另外一件事,如果我登录我的名字应该显示在每个页面上使用标签或任何东西,当我要注销所有存储的值应该删除,如果我再次登录它应该要求用户名和密码登录添加哈希和盐渍最好



给我发链接或者请发给我的要求代码



谢谢提前

Hello Everyone

I need a code for login form with a kind of authentication in entity framework using asp.net c#

currently i am using session for storing username like (welcome : kselva) in all the web pages to display my name,so i need avoid session because of performance ,is there any option for login page with authentication in entity framework and one more thing if i logged in my name should display on every page using label or anything and while i am going to logged out all the stored values should erased ,if i login again again it should ask username and password for login adding hashing and salting preferable

send me the link or please post the code for my requirement

thanks in advance

推荐答案

谷歌是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题......



使用部分问题作为搜索词快速搜索 提供超过一百万次点击: Google:实体框架中的身份验证 [ ^ ]



将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using part of your question as the search term gave over a million hits: Google: "authentication in entity framework"[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


这篇关于如何在asp.net c#中使用身份验证而不是会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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