pavanbh 0 Newbie Poster

I am writing code to create a cookie for my site in vb.net and am using the following code in the login button click procedure. When I enter the username and password and click login, I am taken back to the login page again, when I expect to be taken to Default.aspx, that is a welcome page.

Dim newCookie As HttpCookie = New HttpCookie("User")
newCookie.Values.Add("Name", Login1.UserName)
newCookie.Values.Add("Access", ddlALevel.SelectedValue)
newCookie.Expires = DateTime.Now.AddMinutes(1)
Response.Cookies.Add(newCookie)

Dim strRedirect As String
MsgBox(Request("ReturnURL"))
strRedirect = Request("ReturnURL")
If strRedirect <> "" Then
Response.Redirect(strRedirect, True)
Else
strRedirect = "/New_Hospital/Default.aspx"
Response.Redirect(strRedirect, True)
End If

Any idea what am i doing wrong?
Thanks.