Author: asp.41net | Posted on: 11/10/2009 12:13:33 PM | Views : 346

Hi folks, i need some help with the rememberme option in the login control, im using forms authentication with the default authentication asp.net schema.
the thing is, its not even generating the cookie now, i have cookies enabled on internet explorer but somehow its not working.


heres the code i got from another post on this forum, but its not working, its on my page_load event of the login.aspx page:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load


Dim RememberMeCookie As Boolean = (Request.Cookies("Credentials") IsNot Nothing)
If RememberMeCookie = True Then

Dim LoginCookie As HttpCookie = Request.Cookies.[Get]("Credentials")
Login1.UserName = LoginCookie("Username").ToString()
Dim passwordTextBox As TextBox = DirectCast(Login1.FindControl("Password"), TextBox)
...

Go to the complete details ...