Session controller and model