认证问题 [英] problem in authentication

查看:69
本文介绍了认证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,在我的asp项目中,我遇到了问题.
在我的登录按钮中,我编写了代码

hello In my asp project I am getting problem.
In my login button I have written the code

if (Membership.ValidateUser(TextBox1.Text,TextBox2.Text))
         {
             // Log the user into the site
             FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, CheckBox1.Checked);
             //Response.Redirect("Default2.aspx");
         }
             // If we reach here, the users credentials were invalid

             Label3.Visible = true;


它登录到我的主页,并在登录"视图控件中显示用户名.它工作正常,但是当我注销并单击登录状态控件时,它也注销了bt.我的问题是,当我单击Internet Explorer的后退按钮时,它会显示用户名.注销后如何管理它以防止显示0f名称


It logged in to my home page and display the user name in Login view control. It works fine but when I logged out clicking on the login status control it also logged out bt my problem is when I clicking the back button of Internet explorer it display the user name. How Can I manage it to prevent the display 0f name after logged out

推荐答案

请确保您调用
Make sure that you calling SignOut[^] to remove the authentication ticket.


这篇关于认证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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