Click here to go to the 2.2.3 version of the docs.
Cookie support is enabled by default and then Gatling handles Cookies transparently, just like a browser would.
However, some use cases require a more fine grain control.
One might want to manually add or compute a cookie:
Cookie can also take more optional parameters:
Cookie(name: Expression[String], value: Expression[String])
One might want to simulate closing a browser, so Session cookies are dropped but permanent cookies are still there:
One might want to flush the whole CookieJar:
One might want to flush the whole HTTP cache (for the virtual user) :