Multiple call to session_start()
Posted: Sat Mar 26, 2011 12:58 am
I have the following PHP codes:
include.php
and page.php
and get the following warning:
Notice: A session had already been started - ignoring session_start() in C:\wamp\www\session\include.php on line 2
Of course my project has several files but have the same issue as above. How would I solve this without turning warning switches off in php.ini file. Your help is appreciated. Thank you in advance.
include.php
Code: Select all
<?php
session_start();
?>Code: Select all
<?php
session_start();
include("include.php");
?>Notice: A session had already been started - ignoring session_start() in C:\wamp\www\session\include.php on line 2
Of course my project has several files but have the same issue as above. How would I solve this without turning warning switches off in php.ini file. Your help is appreciated. Thank you in advance.