anchor.diff:  			{Nick, Req1}
   	end,
   	% set nickname to cookie
  -	Req_ = cowboy_req:set_resp_cookie(<<"nickname">>, NickName, [], _Req),
  +	Req_ = cowboy_req:set_resp_cookie(<<"nickname">>, NickName, [{max_age, 3600}], _Req),
   	{NickName, Req_}.
   
   
  
positive.code: 	{ok, Count} = xnest:status(XNestPid, client_counts),
  	ResponseMsg = make_response(self(), State#state.xnest_name, {'member_count', Count}),
  	{reply, {text, ResponseMsg}, Req, State};
  
  %% @private
  %% @doc Receive Message from xnest and send it to client
  
negative.code: make_response(FromPid, Xnest, {Type, Msg}) ->
  	Time = time2binary(erlang:localtime()),
  	From = pid2binary(FromPid),
  lager:debug("~p", [Msg]),
  	Frame = [ {<<"from">>, From}
  		,{<<"xnest">>, Xnest}
  		,{<<"type">>, Type}
  		,{<<"payload">>, Msg}
  		,{<<"send_time">>, Time}
  	],
  lager:debug("~p", [Frame]),
  lager:debug("~p", [FromPid]),
  lager:debug("~p", [self()]),
  	Response = jsx:encode(Frame),
  	Response.
  
  