SMF API 2, Can't login through SMF

Started by DrennanSoftware, April 22, 2012, 11:38:54 AM

Previous topic - Next topic

DrennanSoftware

When using the SMF API 2 to login a user through the forum when they login through the website, it does not work. Once the login completes and I navigate to the forum, I am not logged in through the forum. Any ideas? Please help.

smfapi_login('Matt', 525600)

print_r(smfapi_login('Matt', 525600));

Just outputs 1.

Kindred

do you have subdomain independent cookies turned ON in smf admin?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

DrennanSoftware

Yes, that is why I'm a little confused. Any ideas?

Andre N

Is the cookie being set?
Is it actually being set on path '/' ?
What does it contain?
"Every generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?"

Advertisement: