clear old session vars before setting new ones
improving the callback for cleaning old session vars