redirect question

by 4 replies
5
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
#programming #question #redirect #s2member framework #user redirect
  • 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');

    ?>
    • [1] reply
    • 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
      • [1] reply
  • 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.

Next Topics on Trending Feed