Login status doesnot change on successful login

Posted by Jammyhunt under .NET Framework on 6/15/2014 | Points: 10 | Views : 1160 | Status : [Member] | Replies : 1
hello guys,
this is the source of my code behind file..

while (rs.Read())
if (rs.GetString(0) == DropDownList1.SelectedValue)
pass = rs.GetString(1);
secure = rs.GetString(2);
if (pass == TextBox1.Text)
FormsAuthentication.RedirectFromLoginPage(DropDownList1.SelectedValue, false);

Response.Redirect("~/users/FormIndex.aspx?username=" + secure);

Label3.Visible = true;

whenever i enter my username and password it get successfully logined but my login status does not change to logout. it shows login after the successfull login

Note : same coder running well under my localhost and same code running in my two other websites.

Any help will be apreciated


Posted by: Vuyiswamb on: 7/6/2014 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Looks ok, please clear the Catche with Control F5

Thank you for posting at Dotnetfunda

Jammyhunt, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response