- This topic has 1 reply, 2 voices, and was last updated 9 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Custom Login form – set valid login value(s) for protected pages
I have a custom login form that validates users from an outside source via WSDL authentication. Once the user logs in (validates themselves on that remote database) how do I set the eMember value to a logged in state ?
I assume something like $_SESSION = true;
This bit won’t be that easy as just setting a session value. eMember has a sequence of checks, validation, tracking and other stuff it does for the login process. We don’t really support this kind of custom login setup you got going.
You might be able to use the following option to achieve a similar result.
If your system knows the username and password, then you can send the user to the following URL so emember can authenticate it and log the user into the system.
your-domain.com/?doLogin=1&emember_u_name=<username>&emember_pwd=<password>
So from your other custom code, you would construct the above URL then redirect the users there and the system will log them in. As far as the members are concerned, they will see that they are logged into the system.