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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 10 Nov 2004 10:40:17 -0500, Al <news@xxxxxxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux