Hi masters!
Help me please about include:
I have a module(login_auth.php) to handle session , it begins:
Then every module begins with some code:PHP Code:session_start();
session_register("session_vars");
function setsessionvars($blah)
{
global session_vars;
session_vars['login_pwd']=$blah;
}
If I call in a module another module, and recall this, generating a redeclare error:PHP Code:include ("login_auth.php");
In a.php:
And b.php:PHP Code:include ("login_auth.php");
blah;
include ("b.php");
exit;
If I use function include_once("login_auth.php") in a.php, the session_vars['login_pwd'] has no set when calling from b.php:PHP Code:include ("login_auth.php");
blah;
include ("a.php");
exit;
In a.php:
Can somebody help me?PHP Code:include_once ("login_auth.php");
echo session_vars['login_pwd']; //no value after recall!
include ("b.php");
exit;





Bookmarks