Clearflags Method

This method clears all the flags and information from the global session.