Hi all,
I am creating a new Splashpage / homescreen page where a user can select links for our various systems - along with surface certain data and menu's based on who they are.
I planned to do this by using moodle to authenticate the user and then surface the options.
I have this working by adding:
require_once('config.php');
if (isloggedin() && !isguestuser()) {
//Yes, they are logged in.
//Continue from here...
} else {
redirect('/login/index.php');
}
?>
This automatically redirects the user to the moodle login page, asks for them to login and then re-directs them back to my Splashpage, with their user details in tow for data surfacing.
This works on Google Chrome and mobile Safari, however not on IE or Firefox.
(The initial redirect for login works for all, however the redirect back to my page doesn't)
My page lives within the moodle directory so I can't work out why this is an issue.
eg. my.moodle.ac.uk/mysplashpage.php
There seems to be a similar forum with a similar question here: https://moodle.org/mod/forum/discuss.php?d=113247
...However I am at a loss...
Any help would be much appreciated.