FormsAuthentication's RedirectToLoginPage Method
-
Hello, I am using FormsAuthentication.RedirectToLoginPage() in my web application. I use this to redirect back if user puts some invalid character(requirement) Because of this, it keeps on increasing the length of URL.. it keeps on appending the redirect url value in querystring... . any clue, how can I get rid of this problem. Appreciate your help.
- ashish
-
Hello, I am using FormsAuthentication.RedirectToLoginPage() in my web application. I use this to redirect back if user puts some invalid character(requirement) Because of this, it keeps on increasing the length of URL.. it keeps on appending the redirect url value in querystring... . any clue, how can I get rid of this problem. Appreciate your help.
- ashish
-
Where in your application are you using this method? Seems it's used in the wrong place.
I am calling this on clicking of logout. OR if I detect some invalid operation, I again call the same method which in having that statement.
- ashish