PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Session » Bug #8119

Logical eroor in function isExpired

Details

Submitted2006-07-05 09:51 UTC
Fromhknaack at holistic-it dot de
Assignedtroehr
StatusBogus
PackageHTTP_Session
PHP Version4.3.10
OSDebian Linux 3.1
Roadmaps(Not assigned)

Comments

[2006-07-05 09:51 UTC] hknaack at holistic-it dot de

Description:
------------
function isExpired()
{
if (isset($_SESSION['__HTTP_Session_Expire_TS']) && $_SESSION['__HTTP_Session_Expire_TS'] < time()) {
return true;
} else {
return false;
}
}

When __HTTP_Session_Expire_TS is less then the actual time then the Seession is Valid! So it should be isExpired() = FALSE and not true!