Acquiring session before checking for latest date.