03-01-2014, 12:08 AM
session register() can some one please explain
by autolinktrader ยป Thu Feb 27, 2014 10:36 pm
im having problem my server upgraded from php4 to php5
can anyone help me understand the change i carnt get my head around it
ive broke the code down that need editing
session_start();
unset($l);
session_register($l);
/***********************************************************************
Check if user is logged on and display the appropriate page
************************************************************************/
if($page=="" or $page==" "){
header("Location: site_start.php");
}
if($page!="" and& $page!=" "){
if(!isset($l)){
include ("templates/template_header_main.php");
include ("templates/template_login_top.php");
include ("templates/template_$page.php");
include ("templates/template_footer_main.php"); }
else
the problem is with the isset and sessions register i know ive to change the
session_register($l) to $_SESSION['name']= $name;
but then how do i edit the isset to work with the new
$_SESSION['name']= $name; or how do i edit the $_SESSION['name']= $name; to work with the old isset
also
can you please explain to me here whats actually going on , im great
with .php and automated scripts but all i can think that $_session in
more of a command not a $var more of a session register command , if
this is so could someone share the $_session command list please
this has proper baffled my head all help is greatly welcome
thank you
autolinktrader