java - Is it incorrect to add a cookie to the response, after you already wrote to the output buffer? -
I have a bug where I add a cookie to The jsp page has already been rendered, it has been added to the sublet filter. What is the reason that it is not being added because it is being added after some content has already been written in the output stream? Cookies are sent in HTTP headings, so they can not be added after the response. You can test whether the answer is using the response. The response is not as much a reaction as you write the byte for the response, but as soon as you flip the reaction or fill the feedback buffer. HttpServletResponse , but not all cookies set on.
Comments
Post a Comment