Re: Multiple session_start()s / Is it a problem??
| From: | elixon | Date: | Wed, 10 Nov 2004 16:18:45 +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-201693@lists.php.net to get a copy of this message | ||
And I think that $_SESSION does not exist unless session is started =>
if (!is_array($_SESSION)) session_start();
might do the job as well.
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.........