Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: integrating with external authentication system

Hi,

I do like [panchz] but i cannot include it in my function login. I dont know why! but the globals vars lost in the script!

then i make this and works fine!

/**

* Function login from my system

*/

function login() {

$login = $_POST;

$password = $_POST;

require INCLUDE_PATH.’forumbb-load.php’;

$schemes[] = ‘auth’;

$schemes[] = ‘logged_in’;

$expiration = time() + 172800;

$expire = 0; /* 0 or 1*/

foreach ( $schemes as $scheme ) {

$wp_auth_object->set_auth_cookie( USER_ID , $expiration, $expire, $scheme );

}

Skip to toolbar