Title: Return After Login
Last modified: August 22, 2016

---

# Return After Login

 *  [KentyMac](https://wordpress.org/support/users/kentymac/)
 * (@kentymac)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/return-after-login/)
 * When a potential customer visits a protected page they are told to login or sign
   up. After signing up they are sent to either the home page or a thank you page.
   Is there anyway to send them to the page they were originally trying to access?
 * Thank you.
 * [https://wordpress.org/plugins/s2member/](https://wordpress.org/plugins/s2member/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [krumch](https://wordpress.org/support/users/krumch/)
 * (@krumch)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/return-after-login/#post-5702839)
 * Maybe can use session cookie for that… But this is not in s2M features, needs
   to be a custom code.
 *  [Cristián Lávaque](https://wordpress.org/support/users/anguz/)
 * (@anguz)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/return-after-login/#post-5702966)
 * “they are told to login or sign up”
 * I guess you’re talking about the message you put in the Membership Options Page,
   right? You’d use the variables available there to create a login link that has
   the redirection back to the protected page.
 * These articles may help:
    [http://www.s2member.com/kb/s2mop-shortcode/](http://www.s2member.com/kb/s2mop-shortcode/)
   [http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect](http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Return After Login’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 2 replies
 * 3 participants
 * Last reply from: [Cristián Lávaque](https://wordpress.org/support/users/anguz/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/return-after-login/#post-5702966)
 * Status: not resolved