經安全檢測,此網站為安全網站,請放心前往原始網址!

c# - How to access session variables from any class in ASP.NET? - Stack Overflow

I always use a wrapper class around the ASP.NET session to simplify access to session variables: public class MySession { // private constructor private MySession() { Property1 = "default value"; } // Gets the current session. public static ...

stackoverflow.com

網址安全性掃描由 google 提供