Tuesday 2 September 2014

Get All Cookies : getCookies()

HttpServletRequest interface provides getCookies method, to access all the cookies in the request.

public Cookie[] getCookies()
Returns an array containing all of the Cookie objects the client sent with this request. This method returns null if no cookies were sent.

Follow the below link for detailed example.




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment