Hi! How should be any user logged out, that after logging out and redirected to login page, any user couldn't open previews page while clicking button 'back' in browser?
My logging in looks so:
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
con.Open();
string cmdStr="select count(*) from registration where UserName='"+TextBox1.Text+"'";
SqlCommand checkUser=new SqlCommand(cmdStr,con);
int temp=Convert.ToInt32(checkUser.ExecuteScalar().ToString ());
if (temp==1)
{
string cmdStr2="select password from registration where UserName='"+TextBox1.Text+"'";
SqlCommand pass = new SqlCommand(cmdStr2, con);
string password=pass.ExecuteScalar().ToString ();
con.Close ();
if (password == TextBo ...
Go to the complete details ...