rikulo/stream

why can't remove cookie at server?

icode opened this issue · 2 comments

static signout(HttpConnect connect) {
  connect.request.session.destroy();
  var resp = JSON.encode({
      'success': true
  });

  connect.response
    ..cookies.clear()
    ..headers.contentType = getContentType('json')
    ..write(resp);
}

remove cookie action not send browser.

connect.response
  ..cookies.add(new Cookie('nick')..maxAge=-1)
  ..headers.contentType = getContentType('json')
  ..write(resp);

write this?

Please post it to stackoverflow.com. This is for bug reporting or feature requests For spec clarification, please use stackoverflow.com.