bool _bLoggedIn = false;
[WebMethod]
public bool Login(string sUserName, string sPassword)
{
int iCount = -1;
string sQuery = "select count(*) as reccnt from users where username = '" +
sUserName + "' and password = '" + sPassword + "'";
DataSet oDS = GetDataSet(sQuery);
try
{
iCount = System.Convert.ToInt32(oDS.Tables[0].Rows[0]["reccnt"]);
}
catch (Exception e)
{
}
_bLoggedIn = (iCount > 0); ;
return _bLoggedIn;
}
[WebMethod]
public bool IsLoggedIn()
{
return _bLoggedIn; This always returns False
}Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people