On Tue, 2004-02-03 at 13:44, Rolf van de Krol wrote: > I tried to start a session by this code: > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <html> > <head> > <title>Untitled Document</title> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> > </head> > > <body> > <?php session_start(); > echo(session_id()); > ?> > </body> > </html>
The session_start() function call needs to be at the top of the page, before you send any html to the browser. -- Adam Bregenzer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php