How to go about integrating login/accounts

Discussion in 'MySQL' started by windtalker, Aug 16, 2006.

  1. #1
    I think this may be the right forum to post in:
    I would like to integrate login and accounts between two php programs that use Mysql. I would like it so that once someone login or registar, they login or register for the whole site.
    Would anyone know the steps to take or some tutorial about integrating php programs?
     
    windtalker, Aug 16, 2006 IP
  2. Immunity

    Immunity Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you want to use just a sql for accounts? Is it correct?
     
    Immunity, Aug 16, 2006 IP
  3. ThomasNederman

    ThomasNederman Peon

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i found this page on the internet, have not tried it, but it looks like it could work

    http://www.free2code.net/plugins/articles/read.php?id=99


    Basicaly what you do it use $_COOKIE["PHPSESSID"], when a user login, you add a line in a session table. When you load pages afterwards, you check the session table for a match. When user logout, you remove the line from the session table.

    The session table contains the above session cookie and userid, userid being linked to the user table.

    Search google for "login php script" and you will find a lot of exampels on this
     
    ThomasNederman, Aug 17, 2006 IP