Re: starting a session

From: Date: Tue, 03 Feb 2004 13:12:41 +0000
Subject: Re: starting a session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176672@lists.php.net to get a copy of this message
Hello Angelo, On 3 Feb 2004 at 9:36, Angelo Zanetti wrote: > is there ever a certain situation where you would have something at the top > of your page before session_start();? If so why would it be before > session_start();? The closest thing to a "certain situation" that I can think of is when want to set session variables only if certain conditions are met (e.g. only if the password submitted by a user matches the one in the database). In this case, for obvious reasons, you'll need PHP code before the session_start() statement. Does this help at all? Erik

« previous php.general (#176672) next »