So when you make websites using Java you have something called a Session in which you can store any information you want basically for as long as that browser session is going on.
I'm fairly new with using ASP.NET MVC 3 and being able to pass around the right data at the right time is something that leaves me tied up quite often. For the most part I understand passing variables from views to controllers and back to other views.
But I was wondering if there's a way to make something that allowed to to let's say, grab a user's address from any view? I know there is User.Identity.Name
built in and this is very handy for checking that a user is on their own page, etc. But is there any way to have a User object with custom information that is accessible anywhere?
I'm currently working on having a reputation system on my website (much like this website) where different amounts of reputation allow you to do different things. So in a lot of views I need to say "Hey, if the user has this reputation, let them see this feature." But this is extremely tedious if I have to pass in a user into every single view.
Any ideas?