Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想获取文件中的session值global.asax,是否有可能,如果可以,请问如何?
session
global.asax
试试这个
if (HttpContext.Current != null && HttpContext.Current.Session != null) { var data= HttpContext.Current.Session["sessionvariablename"]; }
另请检查:如何访问 global.asax 文件中的会话变量