Session End Synchronisation

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.
 
N

Nicole Calinoiu

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top