Jump to content

[Solved] Edit Php.ini


Jostino

Recommended Posts

The code is header("Refresh: 1; URL= index.php");

 

and it's put in this code:

 

 

elseif ($p == "logout") {
   session_destroy();
   echo "Logout effettuato con successo!";
   header("Refresh: 1; URL= index.php");
   ob_end_flush();

 

and here

 

if($verificadati == 1) {	 
   $sessione = mysql_fetch_array($recuperadati);
   $_SESSION['username'] = $sessione['username'];	  
   echo "Login effettuato con successo!";
   header("Refresh: 1; URL= index.php");
   ob_end_flush();

 

the code header auto-refresh the page after a command

Link to comment
Share on other sites

With those codes you posted the header refresh shouldn't even work. You can't have any html output before the header function.

 

wrong:

echo "Logout effettuato con successo!";
header("Refresh: 1; URL= index.php");

 

right:

header("Refresh: 1; URL= index.php");
echo "Logout effettuato con successo!";

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...