does multisite restrict wp_signon when registering a user?


im wondering about this, we have a multisite install, were using gravityform plugin for the registration form.. also added this code

$user_login = get_usermeta($user_id, ‘user_login’, true);

$user = wp_signon(array(‘user_login’ => $user_login, ‘user_password’ => $password, ‘remember’ => true), false);

but doesn’t seem to work.. is it because its a wordpress multisite? i also tried wp_set_current_user and wp_set_auth_cookie..

i can retrieve the user meta but it doesn’t log me in after registration.