how to set browser remember password in php

Discussion in 'PHP' started by balaganesh, Jun 13, 2011.

  1. #1
    how to set browser remember password in php please tell the way
     
    balaganesh, Jun 13, 2011 IP
  2. The Webby

    The Webby Peon

    Messages:
    1,852
    Likes Received:
    30
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Vague question, elaborate please...

    If you are talking about storing password in browser's local memory, you can use cookies (not recommended). Alternatively you can store password for the current session in server side session ($_SESSION, in php).

    But if you are talking about browser's native capability to remember password for later use, there is nothing you can do in php, its a browser dependent feature. If a browser supports storing password (like firefox or IE etc), which most of the browsers do, it will automatically prompt users whether they want browser to remember this password/username.
     
    The Webby, Jun 13, 2011 IP
  3. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #3
    I think the question is about, example a Remember Me option, if so all I could find at the moment is this http://www.evolt.org/node/60265 note where in the code it talks about adding a time() so cookies don't expire.
     
    MyVodaFone, Jun 14, 2011 IP
  4. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #4
    This is browser client dependent, not a PHP issue.
     
    BRUm, Jun 15, 2011 IP
  5. pr-biztech

    pr-biztech Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    pr-biztech, Jun 16, 2011 IP
  6. bulletservice

    bulletservice Well-Known Member

    Messages:
    632
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #6
    Do you remember Remember me check box while you logged into DP?
    I guess he is talking about such facility.
    OP you can store cookie on the client side and read it back to achieve this target.
     
    bulletservice, Jun 16, 2011 IP
  7. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #7
    I thought he was referring to the "Firefox remember this password?" not HTML forms.

    Maybe you can clarify for us OP?
     
    BRUm, Jun 16, 2011 IP