Re: [Phplib-users] auth does not work and session only after a reload
Brought to you by:
nhruby,
richardarcher
From: Nathaniel P. <np...@te...> - 2003-06-16 17:30:31
|
I had a similar problem as well with the sessions (although not with the user authentication), and it turned out to be due to some strange server configuration where the version of PHP that I used didn't populate the correct variables in $HTTP_SERVER_VARS From the archives, see: http://sourceforge.net/mailarchive/forum.php?thread_id=2073141&forum_id=808 http://sourceforge.net/mailarchive/forum.php?thread_id=2073915&forum_id=808 http://sourceforge.net/mailarchive/forum.php?thread_id=2073916&forum_id=808 The upshot is that in session.inc around lines 417 to 437 phplib uses some variables in $HTTP_SERVER_VARS to set some cookies and handle the 'get' fallback mode. On my setup this would fail because for some reason $HTTP_SERVER_VARS was empty. Check to see if PHP is populating $HTTP_SERVER_VARS by putting this on a script on your server: <?php var_dump($HTTP_SERVER_VARS); ?> If it's empty, you'll need to check the php docs to see what configuration options you need to set for PHP to populate $HTTP_SERVER_VARS, or alter the code for session.inc to use (for example) $_SERVER instead, depending on your setup. If you are using PHP3 or have register_globals set to "on", the server variables might be in the global variable space instead (i.e.: $HTTP_SERVER_VARS['HTTP_HOST'] would be found with $GLOBALS['HTTP_HOST'] instead). If $HTTP_SERVER_VARS is not empty, it must be some other problem. You might try disabling the get fallback mode as well (set $fallback_mode to false in local.inc), see if that solves some of the problem. Unfortunately, I didn't have the problem you mentioned with the authentication... if fixing the sessions doesn't fix the problem, you'll want to go over the auth class that you are using in local.inc and make sure that everything is configured correctly, (i.e. make sure the name of your auth_user table and of your columns are the same, that $classname is set to the same name as your auth class, and that $database_class is set to the name of the class you are using for database access.) You may want to try disabling any 'extras' like default authentication or challenge-response authentication and see if it works to try and isolate the problem. Hope this helps... _________________________________ Nathaniel Price <np...@te...> Webmaster ----- Original Message ----- From: "bye" <by...@gm...> To: <php...@li...> Sent: Friday, June 13, 2003 11:32 PM Subject: [Phplib-users] auth does not work and session only after a reload > > Hallo zusammen, hi out there, > > I got some "minor" problems with my Installation of phplib. > I use Suse 8.2 and the phplib Version shipped with it. > > . DB-Connection etc are working fine. > . Authetification doesn't work (never changes from nobody to a existing > user_id) : It never exits the loginform (endless loop). > . And Session seems to work (Entries in the DB) but I have to reconnect my > page via browser once every time to get acces (after the first time the url > is like "http:///?skn99_cookie=02fd200caf3ee5738192eabcceff150a" and my > domain name "skn99.bye.ch" is missing) > > > I'will send more details if necessary. > > I need help or vacation. I'll tried to solve this problem since 3 days. HELP > > Thanx folks. > > Regards > jens > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > > |