Mozilla ate my PHP

Sharky Forums


Results 1 to 3 of 3

Thread: Mozilla ate my PHP

  1. #1
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463

    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?
    ~ And that is my humble opinion.

    When I was a boy I was told that anybody could become President. Now I'm beginning to believe it. - Clarence Darrow

    The greatness of a woman’s power is measured in the size and amount of the balls she clutches in hand. -Nephalim

    "Tink"
    1700+ XP on A7N8X, 768MB PC2700 DDRRAM, Samsung 19" 900IFT, Radeon 64MB DDR VIVO, SB Live! MP3+, 42.9GB IBM HDD, Plexwriter 8/4/32, 3C905CTXM NIC

    "Hermes"
    Dell Inspiron 8200, 1.7 GHz P4, 512MB DDRRAM, 30GB HDD, DVDROM, Geforce4 Go 64MB

  2. #2
    Reef Shark Nephalim's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    463
    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. 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).
    ~ And that is my humble opinion.

    When I was a boy I was told that anybody could become President. Now I'm beginning to believe it. - Clarence Darrow

    The greatness of a woman’s power is measured in the size and amount of the balls she clutches in hand. -Nephalim

    "Tink"
    1700+ XP on A7N8X, 768MB PC2700 DDRRAM, Samsung 19" 900IFT, Radeon 64MB DDR VIVO, SB Live! MP3+, 42.9GB IBM HDD, Plexwriter 8/4/32, 3C905CTXM NIC

    "Hermes"
    Dell Inspiron 8200, 1.7 GHz P4, 512MB DDRRAM, 30GB HDD, DVDROM, Geforce4 Go 64MB

  3. #3
    Expensive Sushi
    Join Date
    Oct 2001
    Posts
    21
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •