Skip to content

Instantly share code, notes, and snippets.

@nuryslyrt
Created March 27, 2011 20:14
Show Gist options
  • Save nuryslyrt/889567 to your computer and use it in GitHub Desktop.
Save nuryslyrt/889567 to your computer and use it in GitHub Desktop.
cookie de yazdığımız değere sonradan erişmek için
FacesContext context = FacesContext.getCurrentInstance();
String cookieName = null;
Cookie[] cookies = ((HttpServletRequest)context.getExternalContext().getRequest()).getCookies();
if(cookies != null && cookies.length > 0) {
for (int i = 0; i < cookies.length;i++) {
Cookie c = cookies[i];
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment