Auto login after signup

By gregThomas - January 24, 2013 - edited: January 24, 2013

Hi Karls,

It is possible to log a user in after they sign up. After you have registered the users details you can redirect  their browser login to them in. I've modified the default sign up form that comes with the membership plugin to do this and attached it to this post. The new  line I've added is:

//If the user has successfully signed up, login them in. 

redirectBrowserToURL('scratch.php?action=login&username='.$_REQUEST['username'].'&password='.$password);

Let me know if you have any questions on implementing the sytem.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com
Attachments:

scratch_001.php 8K