Hello,
I'm working on Remember me Check box on login i'm creating cookies. These cookies are properly save on cookies when logout then its assign username to user name text box not for password. Why Password is not assigned? and second when i closed the page and then open this page nothing in cookie and not display any data on text boxes.
What should I do? Please help me
Thanks in advance.....................
Hina
HinaPosted Apr 6, 2008, 12:26 PM
On Login_Click Event
If chk_Remember.checked then
response.cookies("user_id").value=txt_user_id.text
response.cookies("password").value=txt_password.text
End if
On Page load event
If Not Request.Cookies("User_ID") Is Nothing Thentxt_UserID.Text = Server.HtmlEncode(Request.Cookies(
"User_ID").Value) End If If Not Request.Cookies("Password") Is Nothing Thentxt_Password.Text = Server.HtmlEncode(Request.Cookies(
"Password").Value) End Ifbut these values are not assigned. after close the pade and open this is not getting any values from
cookies.
Thanks
Bechir BejaouiPosted Apr 6, 2008, 12:14 PM