hello guys i am working on a java web page, i have all my classes and xhtml files. i can create the cookies but i can't check them when the page is loaded. i have a get cookie function which is:
public Cookie getCookie(String name)
it returns null if there is no cookie, i am trying to write
if(user.getCookie==null)
goto login.xhtml
basically that's what i am trying to do. how can i embed this code into html file?
and in my logout, how can i remove all the cookies?