确定会话在C#.NET中过期 [英] Identify Session expire in C# .NET
本文介绍了确定会话在C#.NET中过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,现在是一个Web服务项目,并且是这个概念的新手.我已将服务成功托管在IIS 5.1中.现在,我需要在服务中添加会话超时.在Google上长时间浏览后,我发现了它,但是会话期满时我仍然遇到一些问题.
如果您知道,请详细解释给我
Hi guys , now am in a web service project and new to this concept.I am hosting my service in IIS 5.1 successfully. Now i need to add session time out in my service. After a long surfing on google i found it but still i have some problem in session expire.
If you know explain me in details
My web.config file
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="HelloWorldObject.Hello, HelloWorldObject" objectUri="SimpleHelloWorld.soap" />
</service>
<add name="HelloWorldObject.Properties.Settings.TestingConnectionString"
connectionString="Data Source=SYS3\SQLEXPRESS;Initial Catalog=Testing;Integrated Security=True"
providerName="System.Data.SqlClient" />
</application>
</system.runtime.remoting>
<system.web>
<sessionState timeout="1"></sessionState>
</system.web>
</configuration>
另一件事是,我需要在会话时间到期时通知我的客户我该如何实现这一目标....
在此先感谢
ganesh_IT
And another thing is, i need to notify my client when the time session expire how can i achieve this....
Thanks in advance
ganesh_IT
推荐答案
请检查以下有关检测会话超时的链接.
http://aspalliance.com/520_Detecting_ASPNET_Session_Timeouts.all [
Please check the following link which deals with detecting session timeout.
http://aspalliance.com/520_Detecting_ASPNET_Session_Timeouts.all[^]
这篇关于确定会话在C#.NET中过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文