[PHPLIB] active_sessions From: Charles P. Wright (cpwright <email protected>)
Date: 11/09/99

I use phplib for use with IMP 2.2.0-pre5, and have been having problems
when I logout because of active_sessions updates being interspersed.
Attached is code that I've tested with MySQL that uses replace instead of
update or insert, this shoud make the update atomic and prevent nastiness.
I don't have any other database servers, so I don't know if this fix is
MySQL specific, but hopefully someone else will find it useful.

--
Charles P. Wright
cpwright <email protected>
http://w3.cpwright.com/

The trouble with computers is that they do what you tell them, not what you want.

- 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.