Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 24th Apr 2012, 12:39 AM   #1
Active Warrior
 
Join Date: 2010
Posts: 44
Thanks: 1
Thanked 2 Times in 2 Posts
Default
redirect question
Share on: 
fb share twitter share gplus share more share

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
Boudewijn is offline  
Unread 24th Apr 2012, 01:31 AM   #2
Frenchy Warrior !
War Room Member
 
Join Date: 2011
Location: France
Posts: 52
Thanks: 11
Thanked 5 Times in 5 Posts
Default
Re: redirect question
Share on: 
fb share twitter share gplus share more share

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');

?>
Mirque is offline  
Unread 24th Apr 2012, 02:28 AM   #3
~ Arya Anditya ~
 
Join Date: 2012
Location: Your Heart
Posts: 27
Thanks: 0
Thanked 3 Times in 3 Posts
Arrow
Re: redirect question
Share on: 
fb share twitter share gplus share more share

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
Anditya is offline  
Unread 24th Apr 2012, 09:06 AM   #4
HyperActive Warrior
War Room Member
 
Earnie Boyd's Avatar
 
Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
Default
Re: redirect question
Share on: 
fb share twitter share gplus share more share

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.

Earnie Boyd is offline  
Unread 25th Apr 2012, 09:30 AM   #5
Active Warrior
 
Join Date: 2010
Posts: 44
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Re: redirect question
Share on: 
fb share twitter share gplus share more share

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.
Boudewijn is offline  
Closed Thread


Bookmarks

Tags
question, redirect, s2member framework, user redirect


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:35 PM.