Re: Multiple session_start()s / Is it a problem??

From: Date: Wed, 10 Nov 2004 15:50:11 +0000
Subject: Re: Multiple session_start()s / Is it a problem??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-201686@lists.php.net to get a copy of this message
On Wed, 10 Nov 2004 10:40:17 -0500, Al <news@ridersite.org> wrote: > Of course I can simply use "@session_start()" to negate the Notice; but, I want > to be certain this is good practice. I haven't tried it but you might try wrapping session_start() that with if ( !isset ($_SESSION) ) if you don't like using the @ error suppression. I usually have a single common file like config.php or something that I do session_start() in, so I've never actually ran across this issue. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/

« previous php.general (#201686) next »