Re: right place to start a session?

From: Date: Sat, 27 Apr 2002 17:09:58 +0000
Subject: Re: right place to start a session?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94916@lists.php.net to get a copy of this message
On Sat, 27 Apr 2002, Kirk Babb wrote: > Here's my code: > <html> > <body> > <?php > //trying to start a session right here for the usr and pwd variables > session_start(); > session_register("usr", "pwd"); > if (isset($login)): > ?> > <FORM ACTION='<?php echo($PHP_SELF); ?> <? session_start(); other_session_stuff ?><html> <body> The session-start call has to be before ANYTHING that generates any HTML output (such as <html>). miguel

« previous php.general (#94916) next »