Date: 12/04/00
- Next message: Markus Wagner: "[phplib] How do I abort the Loginwindow"
- Previous message: Philip Strnad: "Re: [phplib] can i run auto_init on user change"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I'm hoping somebody can provide me with some help on a problem I'm
having with the auto_init feature. Before I get into the details let me
say that I've never read about anything like it and a search of the
archives for auto init didn't yield any information.
In my auto init file (setup.inc) I do only one thing. I check if the
user has sent a cookie to the server. The cookie contains the user's
user ID (the md5 hash). If the cookie is sent, I look it up in
$auth->database_table and try to find the user's username and
permissions. If a row is returned the following code is run:
$auth->auth["uname"] = $row["UserName"];
$auth->auth["uid"] = $row["UserID"]; # This line is important
$auth->auth["perm"] = $row["perms"];
What this is supposed to do is login users automatically. The code
above causes the page to load extremely slowly (it takes no less than 30
seconds). Over the past week I have eliminated every variable in this
scenario and what it comes down to is that if I comment out the line
that's setting $auth->auth["uid"] the page loads as quickly as all other
pages!
I've tried different versions of PHPlib, I've checked my db for bad
tables, I've gotten rid of all the HTML in the page except for some
text, I've tried different browsers (Netscape, IE, AOL, etc), different
connection speeds (LAN, DSL, 56k). It all comes down to that one line.
If I remove it my problem is solved.
Any ideas? Thanks in advance
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Markus Wagner: "[phplib] How do I abort the Loginwindow"
- Previous message: Philip Strnad: "Re: [phplib] can i run auto_init on user change"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

