The cookie is added to the Set-Cookie response header by means of the addCookie method of HttpServletResponse. Here’s an example:
Cookie userCookie = new Cookie("user", "uid1234");
response.addCookie(userCookie);
The cookie is added to the Set-Cookie response header by means of the addCookie method of HttpServletResponse. Here’s an example:
Cookie userCookie = new Cookie("user", "uid1234");
response.addCookie(userCookie);
This entry was posted on Thursday, June 7th, 2007 at 9:25 pm and is filed under Cookie. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Theme Contempt by Vault9.
Blog at WordPress.com.