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

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

 



Al wrote:
Is there a problem issuing multiple session_start()s for a given script?
I can't find anything in the manual that says one way or the other.

Then you have not looked good enough ;-)


I have some scripts that call more than one functions include file and for convenience put a session_start() on each one.
This gives me a "Notice" error.

You'll find this in the documentation of session_start(): "Note: As of PHP 4.3.3, calling session_start() while the session has already been started will result in an error of level E_NOTICE. Also, the second session start will simply be ignored."


So there is no problem with multiple calls to session_start(). You can safely ignore the notice.

--
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