[Phplib-users] Cookie crumbs!
Brought to you by:
nhruby,
richardarcher
From: Lindsay H. <fmo...@fm...> - 2003-01-18 20:36:01
|
I'm having a weird problem here which appears to be related to phplib database (not native php4) session management, and is dependent on the version of apache I'm running but _not_ the version of php4. I have a lot of pages here which do session management using mysql databases, phplib and php4. Everything works as expected with the following software combination: apache: 1.3.26 php: 4.3.0 phplib: 7.4-pre2 If I switch to apache 2.0.43, using php4 as a dso compiled for it (same php version, almost the same configure options, same php.ini file, same phplib files), phplib will no longer issue cookies to track sessions. Cookies are working. I can set a cookie using <meta http-equiv ...>, or I can set an arbitrary cookie using php with setcookie(), and I can read the cookies on the server side with php using the $_COOKIE global array, but I can't get any cookie-based session tracking to the MySQL databases set up for this purpose. Other features, including other database access and php4 functionality, seem to be working OK. I'm using mozilla to test, and have it set to ask permission before accepting a cookie, and when the server is apache 1.3.26 I always get the usual cookie question, but when the server is apache 2.0.43 I get no cookie notice, and phplib apparently falls back on GET variables, and since I have register_globals off, and don't necessarily accept a GET session id, I end up with lost sessions. The only things changed are the version of apache and the specific php module used, which was compiled separately for each apache version. Otherwise, everything is the same. I'm using different httpd.conf files, of course, but mod_usertrack is in both of them and as I said, cookies are working, just not phplib session management cookies. Has anyone else hit this, and found a solution? Is this perhaps a thread support problem? -- Lindsay Haisley | "Everything works | PGP public key FMP Computer Services | if you let it" | available at 512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys> http://www.fmp.com | | |