This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello everyone!! I am new to java,as such having problems in coding.Hope you all will be there to help me Right now i am facing a problem in processing cookies with JSP. I have to take username and password from a form and store them in cookies and read from the cookies on the other page. and a delete button which deletes the cookies. I am getting a null value for the username and password after i kill the browser and open the page in new browser. If someone comes up with the complete code immediately, it will be a great help and highly appreciated!! Regards, Syed
Hi syed, By default cookies expire as soon as the user exits the browser application. So u have set the age of the cookies. using setMaxAge(name)-this sets the time remaining(in seconds) before the cookie expires. Hope this helps U out