Redirect once logged in?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
johnberman
User
Posts: 210

Redirect once logged in?

Post by johnberman »

Hi

I have added security now and have a login page

Once logged in I want users to be redirected so I used this code

function Page_Redirecting(&$url) {
// Example:
$url = "welcome.php";
}

In Other\Login Page\UserloggedIn

That did not seem to work as expected - I must be close

John B


mobhar
User
Posts: 11702

Post by mobhar »

You may simply use "Page_Redirecting" server event under the following locations: "Server Events" -> "Other" -> "Default Page":

if (IsLoggedIn()) {
$url = "welcome.php";
}


Post Reply