i am working on a asp.net project and run my project on localhost iis server on my pc . My default login page url is
"http://192.168.1.10:8087/login.aspx"
. when i login successfully then its goes to home page
"http://192.168.1.10:8087/home.aspx"
. but some time it's add a random string in my url after login like:
"http://192.168.1.10:8087/(X(1)F(NvzZqZwj50XGSo4q7kRfvICiGB2sjw0Li_75F8-x8tnZsmYLirQ6TQ7FE6W7w37N0))/home.aspx"
because of this searching is not working in my application. i don't know what is the reason of this problem. Can someone help me.
What I have tried:
i am string on google but not getting any solution of this problem.
here is my login page code:-
Protected Sub Login_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login.Authenticate
Dim mprov As Veer.Membership.VeerMembershipProvider = Membership.Provider
Dim bool As Boolean = mprov.ValidateUser(Login.UserName, Login.Password)
Dim uname() As String = Roles.GetRolesForUser(Login.UserName)
If bool Then
If role.Count > 0 Then
e.Authenticated = Roles.IsUserInRole(Login.UserName, uname(0))
End If
End If
If e.Authenticated Then
Session("User") = DirectCast(Membership.Provider, Veer.Membership.VeerMembershipProvider).GetUser(Login.UserName, True)
Session("role") = role(0)
End If
End Sub
Protected Sub Login_LoggedIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Login.LoggedIn
Dim rol As String = Session("role").ToString
Session("Host") = HttpContext.Current.Request.Url.Host
Response.Redirect(Veer.Utility.dbutility.HomePage(rol))
End Sub