Mozilla won't display page if "session_start()" us

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MT
Forum Newbie
Posts: 3
Joined: Mon Jul 28, 2003 12:13 am
Location: Volgograd, Russia

Mozilla won't display page if "session_start()" us

Post by MT »

Mozilla won't open a page if that page contains the following code

Code: Select all

<?php
session_start();
 ?>
Nevertheless, session ID is created and session cookie is sent. I tested the script on two servers: http://goldhost.ru/ (Linux, Apache(ISAPI)) and http://www.h1.ru (FreeBSD, Apache(CGI)) - no difference. You can see example at http://www.wml.h1.ru/test2.php. In IE the page is displayed correctly, while Mozilla displays nothing.
What's wrong? Is it a bug of Mozilla or is it a bug of Apache or have I made a mistake?
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

I get a blank page on both IE and Moz. If the above code is your entire page, then there is nothing to display so neither browser will display anything.
Post Reply