Setting the session in the controller