-
Mozilla ate my PHP
I was ready to switch to Mozilla (v1.4) from IE until I had a problem running my PHP apps. Anytime a redirect is called for, nothing happens. It is of the form:
Code:
header("Location: page.php");
exit();
I also tried using absolute URLs (ie http://localhost/page.php), but to no avail. Any ideas?
-
Holy butt-monkey, I figured it out! It seems that Mozilla won't run PHP scripts that include sessions (it just so happened that every page with a redirect also used session variables) when cookies are disabled. Once session cookies were enabled in Mozilla's Cookie Manager, everything worked out wonderfully.
I'm not sure if this discovery is a disconcerting blow to my "no mandatory cookies" policy or if I'm glad that Mozilla actually stops every cookie from being generated where IE didn't. :confused: I'd be happier about the situation if Mozilla's Cookie Manager had a whitelisting feature where all but explicitly demarked sites were denied cookie privileges (my own preference) and PHP had a way to use sessions without cookies (I'm not sure if there is or not).
-
You can disable cookies for php sessions, although this does leave a potential security issue (the session id will be embedded in the url), to do this find and change the following lines in the php.ini file:
session.use_cookies = 0
session.use_trans_sid = 1
BTW, Mozilla 1.5a lets you have a little more control over cookies then a simple accept/deny option.