What is the difference between IRequiresSessionState
and IReadOnlySessionState
beside the inability of the second to save changes to the session variables?
Both provide me the ability to access session variables in my HttpHandler
. But why would I prefer IReadOnlySessionState
? It just restricts me from saving the session for the next request.
Or does it gives me an performance advantage over IRequiresSessionState
?
When would I prefer to use IReadOnlySessionState
over IRequiresSessionState
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…