我是 ASP.NET MVC 的新手。我以前使用过 PHP,创建会话并根据当前会话变量选择用户记录很容易。
I have looked everywhere on the Internet for a simple step-by-step tutorial that can show me how to create and use sessions in my C# ASP.NET MVC 4 application. I want to create a session with user variables that I can access from anywhere in my controllers and be able to use the variables in my LINQ queries.