changing clear session method