AF Cookie should be reused within the context of same request.

Also adding some more functional tests for af.
This overwrites the value. Not sure if we should check and write?
@Tratcher thoughts?