Handling cookies this way was a bad idea

This reverts commit c8c8135d0809752427eef95f4a01ac99787a11ac.