Is it necessary to write session_start( ) in all the files that need session?
Thanks in advance.
session_start()
Moderator: General Moderators
Most scripts are build with 1 page.
That includes ohter pages....
That includes ohter pages....
Code: Select all
<?
session_start();
$act = (isset($_GET["act"])) ? $_GET["act"]: "index";
if(file_exists($act.".inc.php")){
include($act.".inc.php");
}
?>