<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Auto login after registration with User Registration and Pay Pal Add-on&#039;s</title>
		<link>https://legacy.forums.gravityhelp.com/topic/auto-login-after-registration-with-user-registration-and-pay-pal-add-ons</link>
		<description>Gravity Support Forums Topic: Auto login after registration with User Registration and Pay Pal Add-on&#039;s</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:15:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/auto-login-after-registration-with-user-registration-and-pay-pal-add-ons" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Auto login after registration with User Registration and Pay Pal Add-on&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/auto-login-after-registration-with-user-registration-and-pay-pal-add-ons#post-149526</link>
			<pubDate>Mon, 18 Feb 2013 17:34:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">149526@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll close this topic and we'll resolve your issue via your priority support ticket.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jverdelli on "Auto login after registration with User Registration and Pay Pal Add-on&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/auto-login-after-registration-with-user-registration-and-pay-pal-add-ons#post-149520</link>
			<pubDate>Mon, 18 Feb 2013 17:16:24 +0000</pubDate>
			<dc:creator>jverdelli</dc:creator>
			<guid isPermaLink="false">149520@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would like to have a user automatically logged in after registering for a free trial. I current have the User Registration and Pay Pal Add-on's in place and properly configured. I added the following code to functions.php:&#60;/p&#62;
&#60;p&#62;add_action( 'gform_user_registered', 'pi_gravity_registration_autologin', 10, 4 );&#60;br /&#62;
/**&#60;br /&#62;
 * Auto login after registration.&#60;br /&#62;
 */&#60;br /&#62;
function pi_gravity_registration_autologin( $user_id, $user_config, $entry, $password ) {&#60;br /&#62;
	$user = get_userdata( $user_id );&#60;br /&#62;
	$user_login = $user-&#38;gt;user_login;&#60;br /&#62;
	$user_password = $password;&#60;/p&#62;
&#60;p&#62;    wp_signon( array(&#60;br /&#62;
		'user_login' =&#38;gt; $user_login,&#60;br /&#62;
		'user_password' =&#38;gt;  $user_password,&#60;br /&#62;
		'remember' =&#38;gt; false&#60;br /&#62;
    ) );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;When I submit a registration without the Pay Pal integrated it registers the user and auto logs them into the site just fine. It's when I have the Pay Pal add-on running where the user is redirected to Pay Pal and returns to the site. The problem is that it is not auto-logging them into the site after returning from Pay Pal. The user is registered and can log in. Also, the payment/trial information is processing just fine. It just seems to be the auto login part that is not working. &#60;/p&#62;
&#60;p&#62;I'm almost certain it has something to do with the Pay Pal add-on, just not sure what. Please advise. &#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
