Redirect

Discussion in 'Customization & add-ons' started by ghost, Feb 28, 2004.

  1. ghost

    ghost New Member

    Joined:
    Oct 23, 2002
    Messages:
    23
    I am using 1.9Pro.
    Is it possible to redirect to a particular link after login instead of the member.php? I know the setting is in admin panel.
    Actually, my members need to go a particular page after registration. If they leave the browser or go to some where else, they need to go that particular page agan when they login in next time. Since they did go that page, it will log in database. I modified the login.php to detect the status, it only works on the login.php(http://www.domain.com/member/login.php). But when the member click the protected page with line
    $_product_id = array('ONLY_LOGIN');
    include("../member/plugins/protect/php_include/check.inc.php");,
    it force the member to login and redirect to the protected page only. It skips the particular page. WHY?
    Hope you can help me!
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    There is no way to do it, and php_include code must not redirect user anywhere else.
    However, I just suggest you use /amember/login.php as only one available reference to members area. Don't publish direct links.

    Isn't it a solution?

Share This Page