forms auth ticket expiration

Discussion in 'ASP .Net' started by Keith, Apr 6, 2009.

  1. Keith

    Keith Guest

    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.
     
    Keith, Apr 6, 2009
    #1
    1. Advertising

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


    "Keith" <> wrote in message
    news:...
    >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.
     
    Eliyahu Goldin, Apr 6, 2009
    #2
    1. Advertising

  3. Keith

    Keith Guest

    On Apr 6, 3:18 pm, "Eliyahu Goldin"
    <> wrote:
    > 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
    >
    > "Keith" <> wrote in message
    >
    > news:...
    >
    >
    >
    > >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?
     
    Keith, Apr 6, 2009
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Q2hyaXMgTW9oYW4=?=

    Configuring Windows Auth & Forms Auth in Asp.Net

    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=, Apr 28, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    717
    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=
    Apr 28, 2004
  2. =?Utf-8?B?ZGhucml2ZXJzaWRl?=

    Windows Auth, but Forms Auth for one page?

    =?Utf-8?B?ZGhucml2ZXJzaWRl?=, Jan 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    583
    Elton Wang
    Jan 8, 2005
  3. Perecli Manole

    how to prevent auth ticket expiration

    Perecli Manole, Jul 27, 2005, in forum: ASP .Net
    Replies:
    13
    Views:
    1,807
    Brock Allen
    Jul 31, 2005
  4. tparks69

    forms authentication ticket expiration problem

    tparks69, Feb 17, 2005, in forum: ASP .Net Security
    Replies:
    2
    Views:
    235
    tparks69
    Feb 17, 2005
  5. Perecli Manole

    how to prevent auth ticket expiration

    Perecli Manole, Jul 28, 2005, in forum: ASP .Net Security
    Replies:
    2
    Views:
    150
    Perecli Manole
    Jul 29, 2005
Loading...

Share This Page