Re: LiveUser:: how to distinguish between normal logout and timedout logout?
| From: | Torsten Roehr | Date: | Mon, 01 Nov 2004 14:09:43 +0000 |
| Subject: | Re: LiveUser:: how to distinguish between normal logout and timedout logout? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15271@lists.php.net to get a copy of this message | ||
"Lukas Smith" <lsmith@php.net> wrote in message
news:41863EF6.4000402@php.net...
> Torsten Roehr wrote:
> > Hi,
> >
> > is there a way to distinguish if a processed logout has been due to the
user
> > actively logging out or an auth idle/expire timeout?
> >
> > As far as I can see LiveUser uses
> > $this->_options['logout']['redirect']
for
> > both cases. Would be good to distinguish between both cases and inform
the
> > user in the idle/expire case.
>
> I think we have a differnt status for each. So $LU->getStatus() should
> give you the information you need.
>
Hi Lukas,
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.
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.
What do you think?
Thanks and best regards, Torsten