Re: Using Forms Authentication & Custom (Csla) Principal/Identity

Re: Using Forms Authentication & Custom (Csla) Principal/Identity

Old forum URL: forums.lhotka.net/forums/t/5238.aspx


kenb posted on Wednesday, August 13, 2008

Joe --

I've seen some of your other posts on this subject.  I've just encountered a problem with WebResource.axd.

I'm not quite sure how to programmatically determine if (a) the session has expired, in which case I want to expire the FormsAuthentication ticket or (b) the request is being made for something like WebResource.axd and the session object isn't expired, but is unavailable nonetheless (in which case I do not want to expire the FormsAuthentication ticket.

Right now I've got :

If Request.Url.AbsolutePath.EndsWith("WebResource.axd") Then
     Exit Sub
End If

But that seems like a pretty lame hack. Any suggestions?

--Ken

Copyright (c) Marimer LLC