Use session variables in course controller