Great, thanks vbgamer45!
I'm testing again. I'm not sure if I'm doing this process correctly. This is my step-to-step:
1. Login in my external system. If it's success, call to the function (example):
smfapi_login('krator')
I have been "debugging" the function:
function smfapi_login($username='', $cookieLength=525600)
{
...
smfapi_loadUserSettings();
return true;
}
All look successful, i can see the cookie of SMF in $_COOKIE and $user_info is loaded with my data.
2. Load the page of smf (like:
http://localhost:8080/smf2017/index.php [nofollow]).
But, I'm not login in SMF.
Am I skipping a step? (call another function more, or similar)
Edit:
Test 1.
1. Login in my external system in Firefox. (smfapi_login launched)
2. Load SMF index webpage in Chrome. I can see to "krator" how user online
3. Logout in my external system in Firefox. (smfapi_logout launched)
4. Load SMF index webpage in Chrome. I cant see to "krator" how user online
Test 2.
1. Login in my external system in Firefox. (smfapi_login launched)
2. Load SMF index webpage in Chrome. I can see to "krator" how user online
3. Load SMF index webpage in Firefox. I can see to "krator" how user online, BUT, I'm not loggin in SMF!