I've never once even bothered with session cookies. I have always used the HttpSession. However, cookies can come in handy if you are coding a feature like, "remember my password for 2 weeks," becuase you can set the expiration date on the cookie, which you obviously can't do with the Session. So, in some situations, like the one above, you may find it more desireable to use a cookie, otherwise I suggest trying to avoid them as much as humanly possible, and stick to sessions.
__________________
Solve two problems at once. Feed the homeless to the hungry.
|