Date: 02/21/00
- Next message: Chris Johnson: "RE: [PHPLIB] What do these numbers represent ?"
- Previous message: Jan Johansson: "Re: [PHPLIB] active_sesssions"
- In reply to: Daniel Bondurant: "[PHPLIB] active_sesssions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Daniel,
> when a user logs out, are both the Session and User records for their SID
> supposed to be removed?
> using:
> $auth->logout();
When using $auth->logout() three things happen:
- $auth is unregister()'ed
- $auth->auth["uname"] is set to "nobody"
- $auth->unauth() is called. Depending on what you pass to
$auth->logout() and what $auth->nobody is set to, $auth->unauth() does
different things. Check out your auth.inc for the details.
> also, is there something I have to change to logout a user if I am using
> md5 authentication?
I'm not sure on this one.
> I keep having lingering sessions that are very old in the active_sessions
> table and not quite sure how to get rid of them.
To get rid of them you need to use $sess->delete().
-Philip
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Chris Johnson: "RE: [PHPLIB] What do these numbers represent ?"
- Previous message: Jan Johansson: "Re: [PHPLIB] active_sesssions"
- In reply to: Daniel Bondurant: "[PHPLIB] active_sesssions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

