Re: Multiple session_start()s / Is it a problem??
| From: | Klaus Reimer | Date: | Wed, 10 Nov 2004 15:46:23 +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-201685@lists.php.net to get a copy of this message | ||
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.