Hi i have the following code which logs in a user and supposedly stores a cookie, at the moment even if a user has clicked on remember me previously, they still have to login the usual way, what do i need to do so that next time they come to the site they are automatically logged in due to them clicking on the remember me checkbox previously. Here is what my code looks like at the moment;
protected void CheckLogin()
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["SportansConnectionString"].ConnectionString);
string strUserPassword = FormsAuthentication.HashPasswordForStoringInConfigFile("P2SSD83NC9G" + txtPassword.Text.ToLower().Trim(), "SHA1");
string strTextUsername = Validator.SanitizeTextString(txtUsername.Text);
SqlCommand command = new SqlCommand("User_login", conn);
command.Parameters.A ...
Go to the complete details ...