OrdersController registers when application starts.

Session closing in functions.