我想将用户转移到global.asax会话结束事件中的其他页面 [英] i want to transfer the user to other page in session end event of global.asax
本文介绍了我想将用户转移到global.asax会话结束事件中的其他页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将用户转移到global.asax会话结束事件中的其他页面
i want to transfer the user to other page in session end event of global.asax
推荐答案
你不能。
Session_End由服务器在内部触发,并且在事件发生时没有与事件关联的HttpRequest。因此:没有Response.Redirect或Server.Transfer可以作为与用户的连接不再存在。
You can't.
Session_End is fired internally by the server and there is no HttpRequest associated with the event when it occurs. Hence: no Response.Redirect or Server.Transfer can be made as the connection to the user no longer exists.
这篇关于我想将用户转移到global.asax会话结束事件中的其他页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文