set Session variables to null when appropriate