Auth: two instances on the same page
| From: | Jeroen Houben | Date: | Wed, 19 Nov 2003 16:11:36 +0000 |
| Subject: | Auth: two instances on the same page | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9023@lists.php.net to get a copy of this message | ||
Hi,
Is it possible to have two instances of Auth running on the same page?
I'd like to do something like:
if ($auth1->checkAuth()) {
// some code
}
if ($auth2->checkAuth()) {
// some other code
}
setting the session name to something different for each instance doesn't help, I think each instance of Auth should have it's own space in the session like
$_SESSION['AUTH']['auth1'].... and $_SESSION['AUTH']['auth2'] ....
but I don't think Auth works like that.
Can anyone elaborate on this? TIA,
Jeroen