PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #8339

Disconnect Fails

Details

Submitted2006-08-01 17:44 UTC
Frommichael at apison dot com
StatusNo Feedback
PackageLiveUser
PHP Version5.1.4
OSirrelevant
Roadmaps(Not assigned)

Comments

[2006-08-01 17:44 UTC] michael at apison dot com

Description:
------------
Hi there,

I'm having a rather annoying problem with the Liveuser disconnect() method. In my configuration, I am supplying a direct dbc object, and not using dsn (MDB2):

'storage' => array(
'dbc' => $db,
....

When running the disconnect method, nothing happens in the auth and perm storage container (ie the user last access time is not updated, so session idle can never be calculated). This is because of the following check:

if ($this->dsn) {
....

(line 277 of LiveUser_Auth_MDB2)

$this->dsn is always false, because I am not using a dsn for connecting.

Maybe the check should see if $this->dbc is an object and leave it just at that?

Thanks,

mike