protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { WorkerService ws = new WorkerService(); Session["WorkerFirstName"] = ws.ValidateWorker(this.Login1.UserName, this.Login1.Password); if (Session["WorkerFirstName"] != null) e.Authenticated = true; }