Session End Synchronisation

  • Thread starter Thread starter Glenn
  • Start date Start date
G

Glenn

I am working on a phased migration of a large ASP app to
ASP.NET using .NET Framework 1.1.

There is a strict 15 minute no activity logout for this
app, which obviously correlates to a session timeout.
However, I am having trouble synchronising the timeout in
ASP.NET and ASP. For instance, if a user is working for
16 minutes within the ASP.NET portion of the site, then
navigates to ASP functionality a timeout is triggered and
the user is automatically logged out.

I'm sure that I'm not the first to have encountered this,
is there a common technique used to overcome this problem?

Any assistance here would be greatly appreciated.

Thanks,

Glenn.
 
Glenn,

One fairly easy workaround would be to place a 1x1 px image or iframe in
each page whose source is an aspx or asp from the other portion of the site.
To avoid client-side caching, you might need to throw a random query string
onto the end of the page url. e.g.:

<img src="somepage.aspx?rnd=38598395" width=1 height=1 alt="" border=0>

The pages don't need to have any content. They just need to be loaded from
the server in order to reset the session timeout.

HTH,
Nicole
 
Back
Top