Code: Select all
$isUserLoggedIn = Validation::isLoggedIn();
So far, so good. But I'd like a file outside the ojs directory to be able to detect whether a user is logged in; I can't find a way of doing so. I'm guessing that it's either trivial or impossible (and that if I understood how the PHP session system worked I'd know the answer!). Is it possible?