Re: LiveUser:: how to distinguish between normal logout and timedoutlogout?
| From: | Torsten Roehr | Date: | Wed, 03 Nov 2004 12:38:13 +0000 |
| Subject: | Re: LiveUser:: how to distinguish between normal logout and timedoutlogout? | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15313@lists.php.net to get a copy of this message | ||
"Lukas Smith" <lsmith@php.net> wrote in message
news:41864873.2030405@php.net...
> Torsten Roehr wrote:
> > "Lukas Smith" <lsmith@php.net> wrote in message
>
> > thanks for your rapid answer. I saw that there are status codes but as
I'm
> > doing a clean redirect to /index.php no session data is carried over and
the
> > status is therefore always rset to 1. How do you handle this? Of course
I
> > could omit the LU redirect, check for the status and then redirect
myself.
>
> Well, personally I dont use redirects, as my framework can handle this
> sort of stuff internally.
>
> > But it would be good to have a config param for this, maybe a key/value
pair
> > like this:
> > $timeout = array('error' => 'timeout');
> >
> > This would be appended to the logout URI by LiveUser:
> > /index.php?error=timeout.
>
> Dont we also have callback methods for stuff like this?
> Our config arrays is probably one of the big reasons people are scared
> away from LiveUser. So I would like to keep those to a minimum as much
> as possible. Maybe open up a feature request so that we dont forget
> about it. Maybe one of the others dev's (maybe they use redirects) have
> an idea.
>
> Hmm maybe we could define a standard for placeholders in the redirect
> url and we would replace all those placeholders with all the relevant
> properties. That way we would not have to add another option. It would
> however mean running a bunch if substr_replace() on every redirect.
I have opened up a feature request in the bug database. For now I'm checking
for the LIVEUSER_STATUS code and redirect myself.
Thanks for your help, Lukas.
Best regards, Torsten