use environment to set cookie
0.2.1