Link to home
Create AccountLog in
Avatar of andieje
andieje

asked on

redirect to login has return url

Hello
I am using asp.net 2.0

On my logout page i have this code to redirect to the login page
Session.Abandon()
        FormsAuthentication.SignOut()
        FormsAuthentication.RedirectToLoginPage()

Open in new window


However this is the url that is displayed in the browser

http://localhost:1324/SureTrack2Copy/Login.aspx?ReturnUrl=%2fSureTrack2Copy%2fTracking%2fLogout.aspx

Open in new window


How do i stop this redirect to login page method including a return url?

thanks
ASKER CERTIFIED SOLUTION
Avatar of ademg
ademg
Flag of Albania image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account