'Check if the session is login or not.'

def logged_in(self):

    sessions = iscsi_get_sessions()
    login = False
    if (self.target in map((lambda x: x[1]), sessions)):
        login = True
    return login
