Hi there -
I've looked and couldn't find the answer, but is there an easy way to check if a user is logged in, and then get at least their user id to look up the rest of their details from the DB? I've tried this on on a standalone PHP script, and it functions, but it includes page styling:
Thanks 🙂
I've looked and couldn't find the answer, but is there an easy way to check if a user is logged in, and then get at least their user id to look up the rest of their details from the DB? I've tried this on on a standalone PHP script, and it functions, but it includes page styling:
PHP:
require 'app/loader.php';
if(CHV\Login::getUser()){
// logged in
}
else{
// not logged in
}
Thanks 🙂
Last edited: