• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help Needed Urgently

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
A wop bop a lu bop a womp bam boom! Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic