public bool CheckUserSession() { using (NpgsqlConnection con = PostgreSQLConn.CreateConnection(Parent.CurrentUser)) { using (NpgsqlCommand cmd = con.CreateCommand()) { return(PostgreSQLConn.CheckSession(cmd, Parent.CurrentUser)); } } }