
[英]Writing to a session variable with SessionStateBehavior.ReadOnly
[英]whats the difference between PagesSection.EnableSessionState and SessionStateBehavior for read/writing to Session
我正在考虑使HttpContext.Current.Session
只读,看起来您可以通过几种方式设置对 Session 的访问。 我不明白两者之间的区别; PagesSection.EnableSessionState
看起来像是一种方式,但使用SetSessionStateBehavior
设置SessionStateBehavior
看起来像是一种完全有效的其他方式。 有什么区别?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.