J
|
Jane 1/8/2009 |
Stephan, |
![]() |
hichem 1/8/2009 |
Stephan, just check $_SESSION["Group"] variable in the AfterSuccessfulLogin event and redirect to the correct page.
|
M
|
mmponline author 1/8/2009 |
Would also like to se an example code please. |
J
|
Jane 1/9/2009 |
Hich, if ($_SESSION["Group"]=="admin") $xt->assign("TableName_tablelink", true); else $xt->assign("TableName_tablelink", false);
if ($_SESSION["Group"]=="Student") { header("Location: student_list.php"); exit(); } |
M
|
mmponline author 1/9/2009 |
Jane //********** Redirect to another page ************
|
J
|
Jane 1/9/2009 |
Stephan, if ($_SESSION["GroupID"]=="I am a Learner")
|
M
|
mmponline author 1/9/2009 |
Fantastic! Works fine. Much appreciated. |
![]() |
hichem 1/10/2009 |
Hich, to show or hide links on the menu page use Menu page: Before display event on the Eventstab. Here is a sample: Stephan, use AfterSuccessfulLogin event on the Events tab for this purpose. Check $_SESSION["Group"] variable and redirect to the correct page. Here is a sample:
|
J
|
Jane 1/12/2009 |
It's difficult to tell you what's happening without seeing actual files. |
M
|
mmponline author 1/12/2009 |
I've got it sorted out, Thanks Jane. This works fine: //********** Redirect to another page ************ |
M
|
mmponline author 1/12/2009 |
Correction: //********** Redirect to another page ************ |
S
|
steveh 2/6/2009 |
Just to correct this, the correct way to redirect in the AfterSuccessfullLogin event is as follows:- |