aliento Posted November 21, 2009 Share Posted November 21, 2009 I am building an application , a directory for auctions. For SEO i made a script which copies a php file to all the directories paths that it creates. I made it work and into all the php files into each directory it includes the base file which shows the code with some variables to recognize the file. Its time now to make the user access and make the sessions. I read that session_start(); should be at the top of the code but this means that should change all the files in all directories. Can i put the session_start(); at the header.php of my script will it work or should i put it onto every php file at the top? Thank you Link to comment https://forums.phpfreaks.com/topic/182382-solved-session-question/ Share on other sites More sharing options...
rajivgonsalves Posted November 21, 2009 Share Posted November 21, 2009 if the header.php is included in each and every file yes you can put it there or you can put it there. Link to comment https://forums.phpfreaks.com/topic/182382-solved-session-question/#findComment-962429 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.