avoid login using excisting session
Brought to you by:
jberanek
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?
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;
Logged In: YES
user_id=71843
OK, glad you found a solution.
John.