add session functionality in session controller