been though this a few times…
we have a custom page dashboard.php that should be accessed when a user logons – everyone has perms to it.
the dashboard.php is set as the default
start page is blank:
the following code is generated in index.php
// If session expired, show session expired message
if (Get(“expired”) == “1”)
$this->setFailureMessage($Language->phrase(“SessionExpired”));
if (!$Security->isLoggedIn())
$Security->autoLogin();
$Security->loadUserLevel(); // Load User Level
if ($Security->allowList(CurrentProjectID() . ‘act_expense_stmnts’))
$this->terminate(“act_expense_stmntslist.php”); // Exit and go to default page
why did it set the default to: act_expense_stmnts ???
if the start page is set as dashboard.php then the browser goes into a too many redirects error:
the following is generated in index.php:
// If session expired, show session expired message
if (Get(“expired”) == “1”)
$this->setFailureMessage($Language->phrase(“SessionExpired”));
$this->terminate(“dashboard.php”); // Exit and go to default page
which results in:
This page isn’t working localhost redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
We have to manually alter:
if ($Security->allowList(CurrentProjectID() . ‘act_expense_stmntslist’))
$this->terminate(“act_expense_stmntslist.php”); // Exit and go to default page
TO
if ($Security->allowList(CurrentProjectID() . ‘dashboard’))
$this->terminate(“dashboard.php”); // Exit and go to default page
everything then works perfectly, including login and session timeout