Session timeout problem

  • Thread starter Thread starter Henke
  • Start date Start date
H

Henke

Hi!

We have a ASP.NET application that uses remoting to connect to the backend.
Is there a way to take care of Sessions that times out in a common way. Now
we are checking Session.IsNewSession and then redirects to the login-page.
This code we have to add on every page which is quite many. Is there a
better way of controling the session timeout?

Thanks!
/Henke
 
You can raise the timeout limit in your web.config

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="120" />
 
Back
Top