Automatic Scripts

Discussion in 'PHP' started by kish27, May 4, 2010.

  1. #1
    Hi,
    I had two sites in different servers , In that one i am using phpbb CMS and another one is ecommerce site .
    Now i would like to integrate both the sites ie i add a menu to redirect to cms site from ecommerce site . but i would like to maintain common login for both the sites if user login in one site he didnt login to another one and viceversa . both sites are different database servers different .
    How can i do this .
    please share your ideas.

    thanking you in advance
     
    kish27, May 4, 2010 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You would need to make it so that when a user logs in they log in to both servers. Are both on the same domain name or different ones?
     
    JAY6390, May 4, 2010 IP
  3. zac439

    zac439 Notable Member

    Messages:
    3,074
    Likes Received:
    214
    Best Answers:
    0
    Trophy Points:
    260
    #3
    You can set up a cookie to do this for you. It would only need to contain a unique ID that corresponds with your primary key in each user database.
     
    zac439, May 4, 2010 IP
  4. kish27

    kish27 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi thanks for replies

    JAY , Both are with different domains names on different servers each one uses there localhost databases.

    and one more thing if a user register in one site , no need to register on another site .

    Zac can you more clear by considering the above

    thanks
     
    kish27, May 4, 2010 IP
  5. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Merging the DB on a Single Server is the Simple solution
    if you need i can do for a small fee!
     
    roopajyothi, May 5, 2010 IP
  6. kish27

    kish27 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I just want to do this by maintaining on different servers only through maintaining the different databases .
    please give your suggestion with respect to that

    thanks
     
    kish27, May 6, 2010 IP
  7. Al0r

    Al0r Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can, but for this you have been access for you in your hosting


    you can connect to other server's datebase.

    for this change localhost when you connecting with php to other servers ip adress

    e.g : localhost = > 213.1.12.142

    with this option you can fetch what you need from other sites datebase.
     
    Al0r, May 6, 2010 IP
  8. kish27

    kish27 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ya i have to do that , at present i am trying to get remote access , before that i am trying to auto login as said , how i can configure common login for both the sites ?
     
    kish27, May 6, 2010 IP