Re: LiveUser:: how to distinguish between normal logout and timedout logout?
| From: | Lukas Smith | Date: | Mon, 01 Nov 2004 14:30:11 +0000 |
| Subject: | Re: LiveUser:: how to distinguish between normal logout and timedout logout? | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15272@lists.php.net to get a copy of this message | ||
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. regards, Lukas