I have just been advised by 1&1 hosting to update from 5.2 to 5.5 version of PHP for use on my sites. I have started the process and immediately run into a problem. Everything in the site functions OK (I think) but when I go to logout of the Members part of the site I get the following error message:
"Fatal error: Call to undefined function session_unregister() in /homepages/35/d406485504/htdocs/hopeless/writers2/edit/logout.php on line 14"
This is something new!
Line 14 reads:
The whole section of code reads;
Is that enough information for anyone to help me sort this out? I am using DW2004 to provide the coding, which I then fiddle about with until I get it to do what I want!
Thanks for looking.
"Fatal error: Call to undefined function session_unregister() in /homepages/35/d406485504/htdocs/hopeless/writers2/edit/logout.php on line 14"
This is something new!
Line 14 reads:
Code:
session_unregister('MM_Username');
Code:
<?php require_once('../../../Connections/tormented3.php'); ?>
<?php
//initialize the session
session_start();
// ** Logout the current user. **
$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
$logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
//to fully log out a visitor we need to clear the session varialbles
session_unregister('MM_Username');
session_unregister('MM_UserGroup');
$logoutGoTo = "../index.php";
if ($logoutGoTo) {
header("Location: $logoutGoTo");
exit;
}
}
?>
Is that enough information for anyone to help me sort this out? I am using DW2004 to provide the coding, which I then fiddle about with until I get it to do what I want!
Thanks for looking.