Application and session controller