The reason most login scripts have a small delay is because the session might not be set immediately for the check to bounce.