且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

webservice请求用户名和密码用于重定向到登录页面的服务器

更新时间:2022-04-09 23:41:00

.ajax()。即时通讯使用表单身份验证和表单身份验证票证方法为我的web.problem是当身份验证到期时,Web服务要求输入用户名和密码。如果按钮点击或链接点击重定向,它不会重定向到登录窗口。如果我打开这个页面的网址为两个选项卡并在一个选项卡中注销页面,然后尝试从下一个选项卡访问Web服务,然后还要求页面询问服务器凭据





使用身份验证

.ajax(). i m using form authentication and form authentication ticket method for my web.problem is when authentication expires web service ask for Username and Password.It does not redirect to login window as button click or link click redirect.If i open url for this page in two tab and sign out page in one tab,then try to access web service from next tab then also page ask for credentials for server


use authentication
<system.web>
        <authentication mode="Forms">
            <forms loginUrl="Index.aspx" protection="All" name=".OTS"></forms>
        </authentication>
    </system.web>





i想要在身份验证时重定向到登录页面 登出。我是网络服务PLZ帮助的初学者,也很抱歉我的英文不好



i want to redirect to login page when authentication is sign out. i am a beginner in Web service plz Help ,also sorry for my bad english


http://***.com/questions/1879136/forms-authentication-and-post-requests-from-ajax?answertab=active#tab-top [ ^ ]

这项工作对我来说
http://***.com/questions/1879136/forms-authentication-and-post-requests-from-ajax?answertab=active#tab-top[^]
this work for me