Since no one knows what software you use in the members-only section, nobody can tell you how to integrate it with WordPress. Generally, though, one of the two products will have to be modified to work with the other. Either you have to modify your members-only section to conform to WordPress’ authentication or vice versa. You may also be able to write a bridge application that would take care of interoperability.
Sorry, I realized I was not being clear. I have no software for my members only section. Basically it is a php script I programmed my self. But, I’m having trouble modifying my script to conform to WordPress’ authentication service properly. Basically if a non-logged in member goes to the URL then they are redirected to /wp-login.php and then there is a query string that tells it to redirect back to the previous url, but it does not do that. Instead, it redirects to /wp-admin/.
michaelmuggler,
there is a query string that tells it to redirect back to the previous url, but it does not do that.
This is something that needs to be looked at in code. Without looking at the actual code, it’s very hard to say what might have gone wrong.
Here’s how I once did it inside a theme:
global $user_ID;
get_currentuserinfo();
if ($user_ID == '') {
header('Location: ' .
get_bloginfo('wpurl') .
'/wp-login.php?redirect_to=' .
rawurlencode($_SERVER["REDIRECT_URL"]));
die();
}