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 » Authentication » Auth » Bug #9856

cookie set everytime new Auth() is called

Details

Submitted2007-01-17 19:15 UTC
Frommandric at gmail dot com
StatusBogus
PackageAuth
PHP Version5.1.4
OSMac OS X
Roadmaps(Not assigned)

Comments

[2007-01-17 19:15 UTC] mandric at gmail dot com

Description:
------------
Auth sets an authchallenge cookie every time the object is initialized.

I was including auth.inc on every page and hence doing
$auth = new Auth("DB", $db_options, "loginFunction");
on every page.

I figure Auth should act differently?

[2007-02-02 00:25 UTC] aashley at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

Auth regenerates the session id on every request so as to minimise the chances of a session high jacking. Doing this will cause a new cookie to be set on every page.

In addition with advancedSecurity enabled a challenge-response cookie is also set on every request.