private bool CheckLoginStatus() { if (!TheSession.User.IsLoggedIn) { HandleLogoff(); return false; } return true; }