Re: [PHPLIB-DEV] $user->delete() broken? From: Teodor Cimpoesu (teo <email protected>)
Date: 02/09/00

Trevor Cordes wrote:
>
> [Posted to PHPLIB a couple of days ago with no response]
>
> I need a way delete a registered user. The documentation for the
> user class says delete() "works as expected". Yet when I call it,
> it doesn't seem to do *anything* whatsoever.

Can you please post your code which does that?

> I basically want to return the user back to "nobody" *and* delete his
> entry from the auth_user table. In other words, return him (and my
> program/database) precisely to the state he was at before he even
> registered as a new user.
>
> I'm not sure if this would require a $sess->delete as well, and I am
> confused whether or not page_close is required.
As the docs say for Session, if you what your changes to *any*
registered
variable to be saved you *must* use page_close() which does this by
writing
back to the defined storage.

> If this functionality doesn't exist, how would I go about adding it?
> If I don't want to modify PHPLIB code, can I just do a query from
> within my page that will do a SQL delete of the appropriate row?
I took a glance over and sow User is derived from Session, so
User::delete()
exists for sure. Be sure to call page_close().

If you still have problems come back and let us know (include the
source).

> Thanks!
you're welcome.

-- 
CIMPOESU Teodor, Web Programmer

@ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo <email protected> , +(401)-330.47.28

official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/ - PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.