My app sometimes calls Server.Transfer
in the Application_OnPostAuthenticateRequest
event of the global.asax to act as kind of url rewite. When this happens and I need to access Session
I get an HttpException: "Session state can only be used when enableSessionState is set to true..." I am assuming this is happening because of the event I am calling Server.Transfer
. Is that why I am getting the exception? When should I do the transfer?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…