[Gatling 2] remove session attributes

Hi there,

I need to remove a session attribute (actually all cookies) from the session. What is the simples way to do this in master?

Cheers,

Stefan

Like so i presume?

.exec(session => session.remove(“gatling.http.cookies”))

Hi,

remove an attribute:
exec(_.remove(“attributeName”))

cookie jar attribute name: gatling.http.cookies

remove session cookies (and keeping persistent ones) built in:
exec(flushSessionCookies)

Stéphane

Scala rocks.

Yes, it really does. We have done countless refactorings that wouldn’t have been possible with such a language!

without