Re: form resubmission logs user back in again
Lukas Kahwe Smith <[email protected]> Thu, 15 Sep 2005 16:46:01 -0400
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Guyren G Howe wrote: > On Sep 15, 2005, at 3:23 PM, Lukas Kahwe Smith wrote: > >>>> If I got this right you are passing in logout as true along with >>>> valid handle and password .. >>>> >>>> this will result in LiveUser: >>>> >>>> logging out the user >>>> and logging in the user again with the handle (not necessarily the >>>> same as before) >>>> >>>> if you do not want this behaviour you can handle this in an >>>> "postLogout" event handler. >>>> >>> Can you elaborate on that briefly? Is that another addObserver call >>> on LU->dispatcher? Is there an example somewhere? >>> >> >> yes .. >> >> check out example4 .. in the conf.php at the bottom >> >> here is some documentation: >> http://pear.limbourg.com/34.html > > > Thanks, that's very helpful. > > It's not clear to me what I would *do* in the postLogout event. It Not even sure myself if i think about it :-) I was first thinking you would be able to kill the handle in the postLogout event .. but thats not really possible .. so never mind my suggestion .. you will need to handle it before calling LiveUser it seems .. regards, Lukas