This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help Needed Urgently

 
syed
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
kalpana Kumar
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic