In async result , when I try to modify cookies, it did not work
===

I tried:

    Context.current().response().setCookie("test", "test");
		return async(
			promiseOfMap.map(new Function<HashMap<String,Object>, Result>(){
				public Result apply(HashMap<String,Object> map){
					PromiseParams2 promiseParams2 =     (PromiseParams2)map.get(PROMISE_PARAMS);
					Context.current.set(promiseParams2.current);
					
					session(Global.COOKIE_EXPIRE_ON, Context.current().session().get(Global.COOKIE_EXPIRE_ON));
					response().setCookie("test2", "test2");
					Context.current().response().setCookie("test2", "test2");
					return ok(views.html.chatting.unhandled.render(
							cSChattings,
							applicationMap2,
							userMap,
							nickname2,
							userId2,
							appIds2,
							offset2,
							boundedCSChattings.size(),
							(Integer) map.get(PAGE_NUM),
							refresh2, 
							chatMaxLength
					));
				}
			})
		);


But neither "test" nor "test2" was setted to client.

What is the problem?

By the way, There is an AuthAction before this controler, but I think it does nothing to this problem.