madke sessions controller and tested it