This topic is locked

Landing page problem bug ?

3/31/2020 8:08:09 PM
PHPRunner General questions
K
kohle author

In the tab Misc I defined a landing page.

If I log out and log in with an other user the landing page is changed to the menu page.
If the login was marked with "remember me" it works fine at the second time login without passing the login page.
In the program at tab "Editor" my page is marked as (landing) not the menu page.
Thanks for help

mbintex 4/1/2020

Found this to be flawed.
Now instead of changing the landing page I use an event in Welcome page: before process. Something like

if ($_SESSION["starturl"]!="")

{

header("LOCATION: ".$_SESSION["starturl"]);

}


This way I can have the user decide whice page should be his landing page, too.

D
DealerModulesDevClub member 4/1/2020

I also stay away from the landing page buttons and use the events.
In Events

Login Page

After Successful login

//** Redirect to another page ****

header("Location: anypage.php");

exit();
(Change anypage.php to your page that you want as the landing page.)