What is the best workaround for the ASP.NET forms authentication timeout when using wildcard mapping? -


my team working on crappy old website , of pages still asp classic. however, we've migrated forms authentication using asp.net , wildcard mapping. works surprisingly except 1 thing: logged in users timing out quickly. after looking in logs appears people timing out after 20 minutes (which specified timeout due inactivity).

so, our hypothesis asp classic pages not tripping whatever mechanism in forms authentication framework resets inactivity timer. i've googled around , read wildcard mapping post great gu still can't find else having problem. so, 1) have ever seen problem? , 2) what's best workaround? (other manually placing hidden frame in every janky asp page loads dumb .net page in background)

update: slidingexpiration set true

also: can't use perpetual sessions because need application time out after 20 minutes of inactivity. also, terrible site written interface stored in page. there's no simple piece of interface code slip javascript into. tried put js include file called 80% of our pages it's caused esoteric problems file download buffers may have try different tack. thanks.

create perpetual session.

essentially end emitting javascript , image tag in master page or navigation users controls (whatever you're using consistent navigation). javascript on interval changes source of image tag http handler endpoint (some .aspx, .ashx) returns 1x1 pix clear gif response image. constant request ensures idle pages keep session alive.

as long browser window open page asp.net session never time out.

often javascript tack on random number request browser doesn't cache request.

a decent walkthrough available here.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -