General code cleanup; create methods for setting expiration time, parsing and
creating cookie data, suppress form display on logout.