문제

I'd like to know how to use the logout.aspx page. I migrated from LS 2012 form authentication and all I need to know is how to make the user able to logout and redirect him again to the login page. I tried to call the logout.aspx by creating an empty screen and write this code on the run event:

Dispatchers.Main.Invoke(Sub()
                  HtmlPage.Window.Navigate(New Uri("LogOut.aspx", UriKind.Relative))
                  End Sub)

But it keeps redirecting me to /Client/LogOut.aspx. Also when I tried to call the page directly from the browser it gives me error page:

Object reference not set to an instance of an object

Any ideas?

도움이 되었습니까?

해결책

Finally I got it. To redirect to the logout.aspx it must be like this:

Dispatchers.Main.Invoke(
    Sub()
    HtmlPage.Window.Navigate(New Uri("../LogOut.aspx", UriKind.Relative))
    End Sub)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top