PDA

View Full Version : PHP4/MySQL Session differences between servers?


dank
03-24-2001, 10:41 PM
I have the same program installed on two different accounts, one on LOLA and one on SEVEN.[nbsp][nbsp]It uses PHP4's session tools in conjunction with MySQL for storing the sessions.[nbsp][nbsp]It works as expected on the LOLA account, but writes 5 entries to the Sessions table on the SEVEN account (4 of which appear to be pretty much gibberish, and none of them are recognized as valid sessions).

Not knowing a ton about the inner workings of sessions, I can't say with certainty that it's not an error on my part.[nbsp][nbsp]But, I can say with 99% certainty that I did not do anything different with the two setups.[nbsp][nbsp]So, is it possible that something about the servers, or possibly the MySQL servers (same PHP version on both accounts' server), could be treating sessions differently?

Dan

dank
03-24-2001, 11:01 PM
Never mind, I figured it out.[nbsp][nbsp]I found the clue in my web error logs.[nbsp][nbsp]On the SEVEN account, I have my database connection file (which is outside the web tree on both accounts) echoing a commented out line to whatever file requests it.[nbsp][nbsp]That was throwing off the sending of cookie/session/header info, resulting in funky behavior.

Sorry to cast any doubt, Terra.[nbsp][nbsp]:)

Dan