Menu

#63 avoid login using excisting session

closed
nobody
None
5
2012-07-20
2006-01-23
Tillebeck
No

Hej. I use the db_ext to validate users. But MRBS
demands a login even though the user is all ready
logged in in another system and a session variable
therefore is set allready.

Can I modify e.g. grab_globals.inc.php to always have
the current logged user name stored as the
$PHP_AUTH_USER.

The reason I ask so specific is that I have tried with
no success but think that I should work. There might
have been an error in my code.

Any other way to do the same?

Discussion

  • Tillebeck

    Tillebeck - 2006-01-23

    Logged In: YES
    user_id=1433861

    I solved it as a "Works for me".

    I access the MRBS through an IFrame in a CMS-system. When
    calling the MRBS index.php file through the IFrame I give
    the username with as an argument.

    I then added this to the index.php file:
    // argument from IFrame
    $NewUserName = $_REQUEST['NewUserName'];
    //Start session on index.php
    session_start();
    // set the UserName session entry to the correct username
    $_SESSION["UserName"] = $NewUserName;

     
  • John Beranek

    John Beranek - 2006-01-26

    Logged In: YES
    user_id=71843

    OK, glad you found a solution.

    John.