session and forum scripts user integration

Discussion in 'PHP' started by mdrobiul, Sep 21, 2009.

  1. #1
    i want to follow the easiest way for login integration with opensource forum script.

    I think that they set a particular flag or batch for remembering logged in user with session(example $_SESSION['valid_user']).

    suppose phpbb forum checks logged in user by $_SESSION['valid_user'] and users are now at Drupal site. We need drupal site users will automatically get access to phpbb forum.

    but i am thinking to modify current login script that will also set a $_SESSION['valid_user']

    i'll also modify phpbb login code because wherever phpbb redirects for login page of phpbb, it will redirect to Drupal login. finally i'll remove registration part from phpbb.

    Do you think that my logic is still missing any part of this job? or there is still more easy way to do it.
     
    mdrobiul, Sep 21, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Try to convert the login from your forum to drupal and then replace the current login to forward to the drupal login page..

    So it seems you are thinking right! :)
     
    EricBruggema, Sep 22, 2009 IP