Cookies

Opening this page makes the server set two cookies on example.ivjn.us. All test cookies start with bta_; nothing here is a real session.

CKE-01Set by the server

The page response sets bta_server=range; a request it makes on load sets bta_http_only=hidden (HttpOnly). Scripts can only see the first one.

Expectcookies_get for example.ivjn.us returns both, with http_only:true on the second; the line below shows only bta_server.

CKE-02Set by script

Adds bta_script=<time> for this host. Watch it change with cookies_watch.

ExpectA watch reports cookie_changed with removed:false, then removed:true after Clear.

CKE-03Written by the agent

Set a cookie with cookies_set (domain example.ivjn.us, name bta_agent), then press Refresh.

ExpectThe list shows bta_agent; cookies_remove on a name that does not exist returns not_found.