1 (edited by Mitja 2006-11-20 20:54)

Topic: Won't delete from users online table

I'm integrating punBB with a site and part of the integration is logging out the user of the forum as well of the entire site.
I call $db->query(); to delete the user from the online table, and the call returns 1, assuming true.
But the user never gets deleted from the table. Also last time visited is not updated as it should be.

If I use forum links and functionality everything works ok.

Is there a login/out abstraction somewhere for this to work as it should?

Re: Won't delete from users online table

In order to log someone out, you have to reset their cookie. Have a look at how it's done when loggin out in login.php.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: Won't delete from users online table

The problem wasn't logging in/out, but deleting the user from the online table.
But I think I have that sorted out now.