IRequiresSessionState vs IReadOnlySessionState

前端 未结 3 1586
孤独总比滥情好
孤独总比滥情好 2020-12-01 08:13

What is the difference between IRequiresSessionState and IReadOnlySessionState beside the inability of the second to save changes to the session va

3条回答
  •  北海茫月
    2020-12-01 08:25

    Follow this http://msdn.microsoft.com/en-us/library/system.web.sessionstate.irequiressessionstate.aspx

    IRequiresSessionState is derived from System.Web.SessionState using this interface we access session in Httphandler and Class file

    If you need read-only access to the Session, implement the IReadOnlySessionState interface.

提交回复
热议问题