Jump to content

[SOLVED] Logout is not re-directing to index.php file.


sayedsohail

Recommended Posts

For some strange reason my logout.php file is not redirecting to index.php file, here is the code.

 

<?php
session_destroy();
echo "<center>Successfully, Logged out<strong>" .$row['NAME']. "</strong><BR>
<BR><a href='index.php'>Click here if your browser is not redirecting  automatically or you don't want to wait.</a><BR></center>";
print "<script>";
print "self.location='htdocs/index.php';"
print "</script>";
?>

<?php

session_destroy();

echo "<center>Successfully, Logged out<strong>" .$row['NAME']. "</strong><BR>
<BR><a href='index.php'>Click here if your browser is not redirecting  automatically or you don't want to wait.</a><BR></center>";
print '<script type="text/javascript">';
print "window.location='htdocs/index.php'";
print "</script>";

?>

 

Give that a try.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.