Results 1 to 2 of 2
  1. #1
    sandor is offline Member
    Join Date
    Apr 2007
    Location
    Pennsylvania,USA
    Posts
    45
    Rep Power
    0

    Default cookies question

    I am working on a project in that has two fields one is for id and other for password and now i want to kill that cookies of id and password so other user won't know other user id and password

    So how do I kill that cookie of id and password ?

  2. #2
    derrickD is offline Member
    Join Date
    Apr 2007
    Location
    USA
    Posts
    50
    Rep Power
    0

    Default

    If you have a cookie object called (for example) ck, then delete it by doing:
    Java Code:
    ck.setMaxAge(0);

Similar Threads

  1. Reading cookies in JSP
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-15-2008, 03:12 PM
  2. JSP cookies example
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-15-2008, 03:11 PM
  3. Reading cookies from JSP
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-10-2007, 05:37 PM
  4. Setting cookies in JSP
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-10-2007, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •