Click here to Skip to main content
15,943,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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>




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
Posted

1 solution

Please check the following link which deals with detecting session timeout.

http://aspalliance.com/520_Detecting_ASPNET_Session_Timeouts.all[^]
 
Share this answer
 
Comments
Pravin Patil, Mumbai 3-Feb-11 6:15am    
I think OP is asking session timeout related to web service.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900