The basic structure looks sensible enough. I don't have any good idea why refreshing the page would cause any issue. Clearing cookies should not help at all; in fact, it should break the page entirely and kick it over to a login screen. So that's just baffling.
The initial reason for making this is @danry25 mentioned that he'd like rotating ads displayed on the customer display, and I think he has a number of similar additions in mind, so I figured i might as well make it extensible