Author: Pmillio | Posted on: 12/30/2008 2:03:37 PM | Views : 261

Hi i have the following code, which allows a user to login, my question is how do i go about checking a user is logged in, and will i have to do it on each page that requires a log in;

  public bool CheckUserCredentials(string username, string password)
{
try
{

string UserPassword = FormsAuthentication.HashPasswordForStoringInConfigFile
("P283NC9G" + this._Password, "SHA1");
SqlCommand command = new SqlCommand("Users_CheckUser", conn);
command.Parameters.Add("@UserName", SqlDbType.VarChar).Value = this. ...

Go to the complete details ...