simple functions in session controller