4 replies
Hi,

I am building a site right now and need to redirect users after login.
For the logging procedure I use s2member framework (the free version).

After the user logs in I want him/her to redirected to another page.
Any ideas how I can get that working are more than welcome.

TIA
#question #redirect #s2member framework #user redirect
  • Profile picture of the author Mirque
    To redirect a member into a specifique page, you must write this into the top of your page php

    PHP Code:
    <?php

    header
    ('Location: yournewpageafterlogin.php');

    ?>
    {{ DiscussionBoard.errors[6109599].message }}
    • Profile picture of the author Anditya
      Hmmm...

      1) User who already registered MUST have special permission set on DB for security issue.

      2) User login with their Username & Password & MUST VALID before go to members area.

      Code:
      if(){header('member.php');}
      else{header('login.php');}
      Regards,
      Arya Anditya
      {{ DiscussionBoard.errors[6109829].message }}
      • Profile picture of the author Earnie Boyd
        Originally Posted by Anditya View Post

        Hmmm...

        1) User who already registered MUST have special permission set on DB for security issue.

        2) User login with their Username & Password & MUST VALID before go to members area.

        Code:
        if(){header('member.php');}
        else{header('login.php');}
        Regards,
        Arya Anditya
        Arya: FYI, when wrapping the code with the markdown CODE or PHP tags the variables with $VARIABLE are erased by the software.
        Signature
        {{ DiscussionBoard.errors[6111130].message }}
  • Profile picture of the author Boudewijn
    It seems that s2member does take care of redirection. so that problem is solved (for now). I still have some other issues to solve first, that is another thread.
    {{ DiscussionBoard.errors[6117573].message }}

Trending Topics