1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to set remember me in php

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

  1. #1
    how to set remember me in php please tell me
     
    balaganesh, Jun 2, 2011 IP
  2. sokaniwaal

    sokaniwaal Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try to use cookies :)
     
    sokaniwaal, Jun 2, 2011 IP
  3. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #3
    Grit., Jun 3, 2011 IP
  4. MezaTech

    MezaTech Greenhorn

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    yes
    it's cookie
     
    MezaTech, Jun 19, 2011 IP
  5. WiserX

    WiserX Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi balaganesh:)...

    Use cookie with php and JS. If you are using jQuery, you can use cookies easily. Otherwise, use JS to update cookie data. Access those cookie variables from php @ next run. Choose a longer cookie life time. Reply if you need further details :eek:
     
    WiserX, Jun 20, 2011 IP
  6. pr-biztech

    pr-biztech Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    My friend told me about it and send me a code for it which is shared here by me. I think it will be help you.
    $cookie = array(
    'name' => 'remember_me_token',
    'value' => 'Random string',
    'expire' => '1209600', // Two weeks
    'domain' => '.your_domain.com',
    'path' => '/'
    );

    set_cookie($cookie);
     
    pr-biztech, Jun 21, 2011 IP
  7. mindblaster

    mindblaster Peon

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    use the cookie and store the information in it
     
    mindblaster, Jun 28, 2011 IP
  8. ataaso

    ataaso Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    just use the cookie :)
     
    ataaso, Jul 7, 2011 IP
  9. yusuyi

    yusuyi Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    search session_start at php.com and SESSION destroy
     
    yusuyi, Jul 9, 2011 IP