generate session controller