Re[2]: [PEAR-DEV] We need another Auth
| From: | Nicolas Hoizey | Date: | Mon, 10 Jun 2002 10:02:09 +0000 |
| Subject: | Re[2]: [PEAR-DEV] We need another Auth | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6841@lists.php.net to get a copy of this message | ||
Hi,
> this starts to make a lot of exceptions that were not planned in
> Auth.
I don't see your point on this. Why do you say that the default
sessions management of PHP used in Auth is an "exception"?
> I corrected the problem by doing a test for the cookie before
> calling start(). But I can only test for PHPSESSID. What if my
> cookie variable has a different name.
$cookieName = ini_get('session.name');
> Thanks for the tip...
> You understand the opposite of what I am saying.
You don't have to be rude, I'm just trying to answer and help!
> I am saying that if someone is not authenticated, I don't want the
> Auth script to trigger session_start(). There is no reason for that.
OK.
> Of course, you might need sessions for doing something else, in
> which case you will trigger session_start two times thanks to Auth.
You can call session_start() 10 times if you want, and PHP won't
create 10 sessions. session_start() should "automagically" know that
there is already a session started.
-Nicolas
--
Nicolas "Brush" HOIZEY
Free PHP projects http://www.phpheaven.net
Veille tous azimuts http://www.gasteroprod.com
Clever Age http://www.clever-age.com