I’ve written an extension to send user information to various places when a member registers on the user side. The code works fine but for one thing.
Member activation is set to No Activation Required. When the user completes registration they should be logged in.
With the extension everything works fine but the user is not logged in. To debug I have removed all additional code from the extension and now just have the exact code from the core. Still the user is not logged in.
I’m sure I’ve declared all the global constants required. I’m really struggling to debug this so if anyone could offer some insight it would be gratefully appreciated. The logging in starts at line 85 and I can’t see anything that should stop the session from being written.
Debugging version of extension attached
Hi Mark,
I’ve actually removed the code that does the business from the posted extension in order to try and debug.
The code sends user information via cURL (which needs to be compiled on your server) to scripts expecting POST information. If you have a signup form at /member/register it will take over and send the information to other places as well as register the user.
I’m using it to submit user information to SalesForce and also ListMailPro during the signup process.
BUT I just can’t seem to clear this last bug which doesn’t log the user in automatically upon completion. The code is an exact replica of the core but moving it to an extension seems to cause an issue.
If I can debug this I’ll eventually publish the extension.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.