forms auth ticket expiration

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

Eliyahu Goldin

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

Keith

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?
 

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

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top