We built this extension to provide some additional control over behavior after user login or logout. It allows you to specify the following behaviors:
This extension may not work properly on sites using MSM/multisite or EE forums, or if EE is not installed in your web root. That said, it works quite well for most sites, and even made it onto a top ten list.
It is free to download, use, modify, or distribute. If you find it helpful, let us know. If you have suggestions or improvements, email or post to us in the forums. Here ‘tis:
EE 2.0: http://www.twomile.com/services/add-on/redirect-after-login-for-expressionengine-20
EE 1.6: http://www.twomile.com/services/add-on/redirect-after-login-for-expressionengine-16
@Andy - That settings behavior is odd; I’ll take a look. What’s your EE version?
@Gabriel - Thanks! I’m glad it’s helpful. I’ll add your suggestion to our feature list for this extension. So I’m clear on what you mean… you’d like to see a setting that would keep the user on the current page? In other words, if someone is on the About page and they log out, it would return them to the About page? And if they log out from the Contact page it would take them back there?
@Corey Snipes: exactly!
I’m using Mark Bowen’s Logout Redirect combined with the $_SERVER[‘PHP_SELF’] variable for achieving redirect at the same page. But I’m really happy about bypassing login notification page with your extension. Both extensions won’t work together.
@Andy - That settings behavior is odd; I’ll take a look. What’s your EE version?
Hey Corey, huge apologies for not getting back - the project requirement changed and we no longer needed a login to get in so the problem kinda went away!
The version I was running at the time was 1.6.5, build: 20081024.
@Andy - Glad you were able to ‘work around’ that problem. I tested the extension on 1.6.5 and I couldn’t replicate the save settings issue you mentioned earlier. If you come across this again or any other problems with the extension, please let us (Corey and I) know and we’ll do what we can to get it remedied.
Thanks
We’ve added a feature for “last page after login”. Thanks to Kevin for doing the heavy lifting on that. You can download the updated version (1.1.0) from our site:
http://www.twomile.com/services/add-on/expression-engine-redirect-after-login
We tried a few different scenarios to confirm that settings are saving properly and haven’t been able to reproduce any trouble here. If anyone is still having trouble getting their settings to save, please let us know!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.