Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get cookies from Filter?

843841May 12 2003 — edited May 12 2003
Hi,
I would like to use javax.servlet.Filter and cookies to handle user authentication. How do I get cookies from Filter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)?
The usual way to get cookies are HttpServletRequest.getCookies(), but ServletRequest doesn't have such a method.
Help appreciated, thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2003
Added on May 12 2003
2 comments
462 views