remember user and auto login on webform

Hello experts, my remember me checkbox is not working for some reason the cookie doesn't contain a value, if i try to reload the page for a second time.  Basically i want my login to function like the EE website, where a user logins in and if his credentials are valid and he checks a checkbox, set up a cookie so next time the login doesn't get displayed.  My code is not working.

'Login Page
  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        'Handles code for submit button
        lblStar.Visible = False
        lblError.Visible = False
        'jumps to the GetUser function which validates if the user exists
        If GetUser(txtUser.Text, txtPass.Text) Then
            'This function builds the cookie for each employee and sends information
            ' and is used when the Timecards webform is loaded
            GetData(txtUser.Text, txtPass.Text)
      'if checked setup a cookie to remember the employee
            If chkpasscheck.Checked = True Then
                Response.Cookies("toolname2").Value = "Accepted"
            End If
            lblError.Text = "Invalid Credentials: Please try again"
            lblError.Visible = True
            lblStar.Visible = True
        End If

   ' extra code here that finds the user from ms access database

    End Sub

 'The page that redirects too

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        If Not Page.IsPostBack Then
                binddgforms("Select * From ToolRequest")
            End If
    End Sub
    Sub finduser()
        If Not (Request.Cookies("toolname2") Is Nothing) Then
          Exit Sub
       end if
    End Sub
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

'Sett the Cookie
Dim cookie1 As New System.Web.HttpCookie("thiscookie", "this is the cookie value")
cookie1.Expires = DateTime.Now.AddYears(1)

'Read the Cookie
If Not Request.Cookies("thiscookie") Is Nothing Then
End If


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.