how is this "Remember my ID" works

Posted on 2006-03-28
Last Modified: 2010-04-01
hi, curious to know how is this features work. I meas is using session or cookies? what is the different of the cookies and session?

can share some sample code of how to handle this properly.
Question by:xman19
    LVL 3

    Expert Comment


    Difference between cookies and session:

    how to use cookies:

    LVL 5

    Accepted Solution

    Session is a way of maintaining a state in HTTP (State less) paradim.
    As HTTP is a stateless protocol, every request is handled independently having no information about previous request.
    Session is a way by which state of a user can be saved between consecutive requests.
    Cookie is a way by which session can be implemented. Cookies are text files which are sent from the server to browser and returned from browser to server. There are other ways like URL rewriting and hidden form fields by which sessions can be maintained.
    For more details:;sid=2002/9/15/01845/1179

    LVL 19

    Expert Comment

    It defintely uses cookies in your browser. To test this, do this:

    Go to one webiste and use "remember my id" function. Then go to option menu to clear all cookies. Go back to the website you will see that id is not remembered any more.

    JSP or servlet have a built-in API to handle all cookie functions, look at this:

    Enjoy :)
    LVL 19

    Expert Comment

    sorry, provided repeated link. here are some new ones:
    LVL 19

    Expert Comment

    didn't split it...

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now