I am learning NHibernate/MVC and creating a sample app that let the user store a list of book they own. The problem i am having is that my repositories required that current login user but I dont what is the best of keeping the user details in MVC Session. I am using forms authentication.
login page
var user = userRepository.login(username,password);
Session["user"] = user;
list page
var user = Session["user"] as user;
var books = bookRepository.getByGenre("Fiction",user);
Is this the recommend way of passing instance variables between each http request?
thanks