modified session clearing