Re: Forms Authentication Expiration
From: Devin Carlen (dcarlenATescapia.com)
Date: 07/20/02
- Next message: Willy Denoyette [MVP]: "Re: PrincipalPermissionAttribute basic help"
- Previous message: Ed Maillet: "Forms Authentication Expiration"
- In reply to: Ed Maillet: "Forms Authentication Expiration"
- Next in thread: Ryan Gregg: "Re: Forms Authentication Expiration"
- Reply: Ryan Gregg: "Re: Forms Authentication Expiration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Devin Carlen" <dcarlenATescapia.com> Date: Sat, 20 Jul 2002 00:29:24 -0400
That was my initial thought, and that is probably what I will end up doing,
but I was wondering if there was a Right Way to do it by having the ticket
extend its own life programmatically. I know the ticket is capable of
renewing itself but I am totally fuzzy on how/when that happens.
Thanks,
"Ed Maillet" <emaillet@_nospam_.unum.com> wrote in message
news:186c801c22f9d$0d4398e0$36ef2ecf@tkmsftngxa12...
> To translate your desired behavior, you do not want the
> ticket to ever expire or it's "life time" must be longer
> than that of the session.
>
> You can create the FormsAuthenticationTicket with a
> expiration DateTime or timeout "life time" in minutes. You
> could set wither of those values to an insanely high
> number or set it to twice the session timeout (if you know
> it or can programmatically get it.)
>
>
>
> >-----Original Message-----
> >Hi all,
> >
> >Here is the functionality I am aiming for. I was hoping
> one of you might
> >have a suggestion for me. ;)
> >
> >Basically I have my forms auth working properly, but my
> concern is that
> >since the FormsAuthenticationTicket has a separate
> expiration than the
> >session, that the user will have to re-authenticate every
> time the ticket
> >expires, losing whatever data they were currently working
> with.
> >
> >I am aware of the FormsAuthentication.RenewTicketIfOld
> method, but the
> >documentation for it is weak at best.
> >
> >Basically unless the user closes their browser window or
> the session
> >expires, I do not want them to have to reauthenticate.
> >
> >Anyone got suggestions?
> >
> >Thanks in advance,
> >
> >Devin Carlen
> >
> >
> >.
> >
- Next message: Willy Denoyette [MVP]: "Re: PrincipalPermissionAttribute basic help"
- Previous message: Ed Maillet: "Forms Authentication Expiration"
- In reply to: Ed Maillet: "Forms Authentication Expiration"
- Next in thread: Ryan Gregg: "Re: Forms Authentication Expiration"
- Reply: Ryan Gregg: "Re: Forms Authentication Expiration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|