| | #1 |
| Active Warrior Join Date: 2010
Posts: 44
Thanks: 1
Thanked 2 Times in 2 Posts
|
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 |
| |
| | #2 |
| Frenchy Warrior ! War Room Member Join Date: 2011 Location: France
Posts: 52
Thanks: 11
Thanked 5 Times in 5 Posts
|
To redirect a member into a specifique page, you must write this into the top of your page php PHP Code: |
| |
| | #3 |
| ~ Arya Anditya ~ Join Date: 2012 Location: Your Heart
Posts: 27
Thanks: 0
Thanked 3 Times in 3 Posts
|
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');} Arya Anditya |
| |
| | #4 |
| HyperActive Warrior War Room Member Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
|
Arya: FYI, when wrapping the code with the markdown CODE or PHP tags the variables with $VARIABLE are erased by the software.
|
| | |
| |
| | #5 |
| Active Warrior Join Date: 2010
Posts: 44
Thanks: 1
Thanked 2 Times in 2 Posts
|
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.
|
| |
|
| Bookmarks |
| Tags |
| question, redirect, s2member framework, user redirect |
| |