News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF logs me out of my site

Started by wane.smith, November 04, 2014, 01:40:35 AM

Previous topic - Next topic

wane.smith

I have built the the bridge between my system and smf which is working. It sets the cookie using the smf api then allows the user to login. But when the users goes back to my site which is a custom built site using standard sessions the user is logged out.

I am using the smf_1-1_api.php include to accomplish this.

with this code

      smf_setLoginCookie(21600, $user['login'], $passwd, true);
        smf_authenticateUser();
Thanks in advanced for your help

I thought I might build a bridge back to my site which logins me back in?

wane.smith

Ok, this is because smf uses the default session name and over writes my session. Once I renamed my session then I no longer had this issue

Kindred

As a side note - if you are using SMF 1.1.x, you probably want to start considering an upgrade as 1.1.x is in sunset mod, only on minimal support now and will be EoL shortly.
Сл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."

Advertisement: