I guess that session_id() method will return null if session is not started (not tested) so theoreticaly you can use:

if (!session_id()) session_start();

elixon

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.

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.

Of course I can simply use "@session_start()" to negate the Notice; but, I want to be certain this is good practice.

Al.........

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



Reply via email to