A simple cookie handler