Wilson Pilar (@wilsonpilar)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @wilsonpilar

    Member

    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 );

    }

Viewing 1 replies (of 1 total)