My variables is retaining its value even if other computers accessing my website. for example, i logged in the pc 1 using Username - User1. when i access the site on pc 2, the User1 is already logged in. Hope some one could help me on this.
i have a variable
public Username as string
then the code is
Username = txtUsername.text
Im going to log in to PC 1 using username "test_user1"
when i access the website on another pc or computer, the username "test_user1" is still on the variable Username.
The question is why it inherit or retain the value of the variable "Username" on other computers?
i used this codes below
Protected Sub btnLogin2_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnLogin2.Click
Username = txtUsername.text
FormsAuthentication.RedirectFromLoginPage(Username, False)
Response.Redirect("~/frmMenu.aspx", False)
End Sub
Its not about the authentication, its about the variable i declared on the module and why it has same value accross other computers accessing my website.