webapp have a logout function