在cookie中保存身份验证用户名密码 [英] Saving authentication username password in cookie

查看:221
本文介绍了在cookie中保存身份验证用户名密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有客户端给出的链接,每当我访问链接时,它会在弹出窗口中要求进行身份验证(用户名,密码)。在我输入UserName,密码之后它允许我在网站内

在第一次登录时我已经选中了RememberMe复选框,所以在下次访问它时,身份验证弹出窗口没有显示,我可以成功进入网站



但要求是在访问网站之前在cookie中存储用户名,密码(使用记住我选项),所以即使在第一次登录时也是如此我不想让我的凭证登录



我需要使用jquery(.net)来做这件事

任何帮助将不胜感激。



提前谢谢

I have link which is given by the client, every time when i acces the link it asks for authentication(Username,password) in a popup. After i enter UserName,Password it allows me inside the site
During first time login i have checked the "RememberMe" check box, so when accessing it for next time the authentication popup is not shown and i could enter into the site successfully

But the requirement is to store the username, password(With Remember me option) in cookie before accessing the site, so even during first time login i dont want to give my credential to login

I need to do this using jquery(.net)
Any help would be greatly appreciated.

Thanks in advance

推荐答案

检查一下,它可以帮到你



http:/ /www.danharman.net/2011/07/07/storing-custom-data-in-forms-authentication-tickets/ [ ^ ]
Check this, it may help you

http://www.danharman.net/2011/07/07/storing-custom-data-in-forms-authentication-tickets/[^]


这篇关于在cookie中保存身份验证用户名密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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