Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
i have a asp.net page which retrive all food item when click on a div .i done this using web service and $.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
XML
<system.web>
        <authentication mode="Forms">
            <forms loginUrl="Index.aspx" protection="All" name=".OTS"></forms>
        </authentication>
    </system.web>


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
Posted
Updated 17-Dec-13 1:58am
v3

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900