logo       

Auth: two instances on the same page: msg#00324

php.pear.general

Subject: Auth: two instances on the same page

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

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise