Hello everybody. I am trying to create a cookie for storing Username and Password.
This is so far I am :
protected void Page_Load (object sender , EventArgs e) {
if (!IsPostBack) {
HttpCookie cookie = Request.Cookies["CredentialCookie"];
if (cookie != null) {
string username = cookie.Values["Username"].ToString();
string password = cookie.Values["Password"].ToString();
TextBox Username = (TextBox) MasterLoginView.FindControl("UsernameTextBox");
TextBox Password = (TextBox) MasterLoginView.FindControl("PasswordTextBox");
CheckBox RememberMe = (CheckBox) MasterLoginView.FindControl("RemMeCheckBox");
CheckBox RemMyCred = (CheckBox) MasterLoginView.FindControl("RemMyCredentialCheckBox");
if (username != null) {
Username.Text = username;
}
if (password != null) {
Password.Text = password;
}
R ...
Go to the complete details ...