I have a Moodle site and i would like to create a mysql trigger using the id of the logged user.
Is it possible to use php to set a custom mysql sess