PHP session_start() question?

jack

New member
I have my site structure set up so that my 1 main-index page grabs the page content from the other .php pages.
This is causing much headache when trying to include files with session_start() for login. Is it bad to have session_start(); initiated at basically every page change on the site? Doing it this way works perfectly x_x
 
usually i would create a config.php file like this:

<?php

session_start();

/*

DATABASE INFO HERE OR OTHER STUFF

*/

?>

and just include it at the top of everypage..
 
Back
Top