AUTO-LOGIN upon Registration with v170722

Hi all. With the latest version, I can’t get the mu-plugin hack for auto-login to work (https://s2member.com/kb-article/auto-login-on-registration/). I’ve also tried the variations suggested in other forums. When the hack is placed in the mu-plugins folder, the website just hangs. I’ve checked to make sure it redirects to a working page. Removing the php code, immediately resolves the issue.

I’ve tried WP plugins for auto-login that do work, but they don’t quite jive with S2Member (I lose data entered into custom fields, for example).

So, does anyone have an example of working code that allows auto-login immediately after registration?

Thanks,
Mike

1 Like

Same here… Just tried this on one of our sites…

I created the directory and file: /wp-content/mu-plugins/s2-auto-login.php

copied/pasted the code… After someone registers, they are redirected to the home page, not logged in.

Hopefully someone out there has an answer…

You need to search this forum. I have previously provided a slight modification to that code (adding one line) that does the job.