Added erase function to session