Primitive building blocks for implementing a cookie based session store.