create method for session controller