Re: init() method
Arnaud Limbourg <arnaud-GdXxm9JVFPlWk0Htik3J/[email protected]> Sun, 11 Dec 2005 21:29:50 +0100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Lukas Kahwe Smith wrote: > Hi, > > we recently got the following feature request: > http://pear.php.net/bugs/bug.php?id=6215 > > To cite from a comment I made there: > > While thinking about this request I have begun wondering if we should > not severely trim down init() to essentially just the _unfreeze() call, > the idle/expire handling and the forceLogin event. > > It would then be up to the user to call login() and logout() > themselves. This would obviously be a big BC break. Conceptually it makes sense but it makes me wonder if we need to have users call init at all then, it can be done automatically. Would the code become ? $lu = LiveUser::factory(); $lu->init(); // the user decides to log in $lu->login(); Arnaud.