Fixed a bug where the EventController::session() method returned void instead of int.