Sample hashed cookie implementation