Re: [phplib] page_open being called twice? From: A Lohla (alohla <email protected>)
Date: 08/20/00

Hello again,
I accidentally sent that before I was finished. Just wanted to add a thank
you to anyone who tries to figure it out. You know it's bothering me if I'm
trying to fix it on a saturday night!

thanks,
Ande Lohla

Here's the other message:
---------------------------------------------------------
Hi Everyone,

I'm having some puzzling behavior from one of my pages using phplib
authentication. Somehow, only sometimes, on loading this page,
page_open is called twice, according to my error logs.

I've done logging output before and after each call to a phplib
function in the page, and it resembles the following sequence in just ONE
load of the page:

page_open() about to begin
       (inside page_open, user proves to be already authenticated)
after page_open()
(authentication data exists and is valid)
before page_close() *
page_open() about to begin
       (inside page_open, authentication fails; displays login form)
after page_open()
(authentication is now uid "nobody")
after page_close() *

I don't understand it, but I believe the after/before (*) marked
above for page_close are a pair. Thus, page_close is triggering a reload of
the page, thereby calling page_open a second time?! How can this be?

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>