|
trouble with Register_Global function with the newest PHP versions
Hello,
I`m new around here and having a problem with the new hosting companies that have installed the newest versions of the PHP.
the register_global settings it`s turrned off ( disabled ) as default and my web script it`s based on register_global enabled
The session start script shows like this :
session_start();
if(isset($_POST['set']) && $_POST['set']=="login"){
header("Cache-control: private");
session_register("mail");
session_register("pase");
$mail=$_POST['mail'];
$pase=$_POST['pass'];
}elseif(isset($_GET['logout']) && $_GET['logout']=="user"){
session_unregister("mail");
session_unregister("pase");
session_destroy();
How can I modify it so I can make it work with register_global disabled ? Or at least another option...
|