How do you create a new cookie?
Assign values to the document.cookie property.
Clone another cookie.
Reset the expiration date on an existing cookie.
What is the difference between WAR and EAR files?
WAR is used to package JAR files; EAR is used to package JSP files.
WAR is used to package resources for Web applications; EAR is used to package Web applications themselves.
WAR is used in pre- J2EE 1.4 application servers; EAR is its equivalent from J2EE 1.4 going forward.
WAR is used to package Web applications; EAR is used to package enterprise resources for those Web applications.
WAR is used to package Web applications; EAR is used to package WAR files and JAR files with EJBs.// answer