Closed Spoowy closed 6 years ago
n2o_cx:add_cookie(Name,Value,Path,TTL) can only handle list values for Name and Value. Feeding an atom name will result in a http 500 error.
n2o_cx:add_cookie(Name,Value,Path,TTL)
Encapsulating Name and Value in _tolist() fixes the issue: n2o_cx:add_cookie(to_list(Name),to_list(Value),Path,TTL)
n2o_cx:add_cookie(to_list(Name),to_list(Value),Path,TTL)
Doesn't accept.
n2o_cx:add_cookie(Name,Value,Path,TTL)
can only handle list values for Name and Value. Feeding an atom name will result in a http 500 error.Encapsulating Name and Value in _tolist() fixes the issue:
n2o_cx:add_cookie(to_list(Name),to_list(Value),Path,TTL)