merger logout and destroy function to clear_sessionh