The set_cookie command uses set_header (which has it's own bug but this is another matter) to set real cookies in the HTTP response header. The way it is currently written, only one cookie can be set per page.
Use new -append feature of set_header command to append
rather than overwrite cookie settings. This causes multiple
Set-Cookie header lines to be emitted rather than overriding
previous Set-Cookie headers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use new -append feature of set_header command to append
rather than overwrite cookie settings. This causes multiple
Set-Cookie header lines to be emitted rather than overriding
previous Set-Cookie headers.