code for remove sessions