hello every body
in my last project i should design a login form and i must make any technic to provide remembering the information of user
i wrote the following code in page load
Code:
Try
txtuser.Text = Request.Cookies("oneway").Value
Catch ex As Exception
End Try
and the following code in login button:
Code:
If chkrem.Checked Then
Response.Cookies("oneway").Value = txtuser.Text
End If
these two code are work perfect but when the user change his/here name and press login button an Error will happen because the program can not overwrite the cookies file
(i.e if for example john enter this login page and save his data in cookies and again enter this page and try to change his name for example mike an error will happen)
any solution please:)