I use session_register($variable) in menu.php and try to catch to another file addmoviestar.php
menu.php
Code: Select all
include "authentic.inc";
session_start();
if(!empty($_POST['user']))
$sesi_user = $_POST['user'];
if(!empty($_POST['paswd']))
$sesi_paswd = $_POST['paswd'];
if(!authentic($sesi_user,$sesi_paswd)){
$msg = "Please enter correct user and id";
header("Location: http://localhost/loginbin.php?msg=$msg");
exit();
}
session_register("$sesi_user");
session_register("$sesi_paswd");moviestar.php
Code: Select all
<?php
include "authentic.inc";
session_start();
if(!authentic($sesi_user,$sesi_paswd)){
$msg = "Please enter correct user and id";
header("Location: http://localhost/loginbin.php?msg=$msg");
exit();
}
?>