forms auth ticket expiration

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

I have an asp.net (2.x) app running forms authentication. Under
certain circumstances, I would like to capture/handle the event, if
there is one, that sends the user back to the login page as a result
of an expired ticket. I am assuming that it would be done in the
global.asax codebehind, but I don't know what the event is or how to
use it. Can anyone shed some light here?

Thanks.
 
AFAIK there is no easy way of doing this. You will likely need to do
something client-side, like ajax callbacks, to see if you get redirected.
 
AFAIK there is no easy way of doing this. You will likely need to do
something client-side, like ajax callbacks, to see if you get redirected.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin




I have an asp.net (2.x) app running forms authentication.  Under
certain circumstances, I would like to capture/handle the event, if
there is one, that sends the user back to the login page as a result
of an expired ticket.  I am assuming that it would be done in the
global.asax codebehind, but I don't know what the event is or how to
use it.  Can anyone shed some light here?
Thanks.- Hide quoted text -

- Show quoted text -

Thanks for getting back to me, that is unfortunate. Since I am
essentially keeping the ticket in the database rather than having IIS
keep it for me, I basically turned off Forms Auth and used a session
variable. In each page request (I used the master page but I guess
you could use global.asax) I compare the db ticket to the session
variable ticket. If either has expired, I redir them to a login
page. I'm gonna go with this unless there is some other reason not to
that I haven't thought of?
 
Back
Top