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

From: Date: Wed, 10 Nov 2004 16:14:26 +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-201692@lists.php.net to get a copy of this message
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.........


« previous php.general (#201692) next »