Cookies with AFNetworking in iOS7

Recently, I had to hit a stateful internal API and needed to store an user authentication cookie.
I couldn’t figure out how to do this in the AFNetworking documentation, but I found a simple answer in this stackoverflow post.