Results 1 to 2 of 2
  1. #1
    lukky is offline Member
    Join Date
    Jul 2008
    Posts
    8
    Rep Power
    0

    Default How to write the login application using cookies

    when the user enter with his details,it'll check for valid details are not.after that he logged in,then that details means user name and password are saved as cookies.my requirement is when the user closes the browser and not logged out then he again opens the same application he logged into that application,that means the page with his details is opened.
    please reply me as soon as possible.
    thank you

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,274
    Rep Power
    25

    Default

    Cookies are used to save the state of the communications with a client. You need to put enough data in the cookie that you know how the user has progressed in the communications.
    You would save the user's details on the server and when the user logs in again, look at the cookie he sent and know what info you can send the user.

Similar Threads

  1. Replies: 5
    Last Post: 06-07-2014, 05:39 PM
  2. Replies: 3
    Last Post: 12-12-2008, 12:12 PM
  3. cookies
    By lukky in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 09-02-2008, 07:46 PM
  4. Replies: 0
    Last Post: 06-25-2008, 12:41 PM
  5. JSP cookies example
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-15-2008, 03:11 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
  •