Can anyone help me with this problem.
I’ve use 2 login buttons which is for members and admin… I have assigned Response.Cookies["DBBRoles"].Value = "M"; for members and Response.Cookies["DBBRoles"].Value = "A"; for Admin on login.aspx… and i also put these Response.Write(Request.Cookies["DBBRoles"].Value.ToString()); on the page when the user has successfully login into the system.
The problem is why the the system still keep the Value ‘A’ for admin even though i login as a members.and i can login the system with the same username and password with 1 button… it didn’t check the login type for admin or members.
You need to clear your cache, cookies and sessions every test you did. If not, you are appending values to the same cookie each test and depend of your login implementation, if not clear cache, cookies and sessions, you have persistent data as your session still are running.