I am trying to save what a user types into the username text box as a cookie, then on subsequent visits have the log-in form auto populate the text box with the cookie value. What am i doing wrong?This will save the username as the cookie value, but when going back to the log-in page, the cookie value seems to return to null.I currently have:\[code\]Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim UserName As TextBox = DirectCast(LoginUser.FindControl("UserName"), TextBox) If User.Identity.IsAuthenticated Then Response.Redirect("~/media") End If Dim UserNameCookie As New HttpCookie("User_Name") UserNameCookie.Secure = True UserNameCookie.HttpOnly = True UserNameCookie.Expires = DateTime.Today.AddDays(7) UserNameCookie.Value = http://stackoverflow.com/questions/14446822/UserName.Text Response.Cookies.Add(UserNameCookie) If Request.Cookies("UserName") IsNot Nothing Then UserName.Text = Request.Cookies("UserName").Value.ToString() End IfEnd Sub\[/code\]