auto redirecting to index.php

TyroneCena

New Member
my logout.php file is\[code\]<?php include "base.php"; $_SESSION = array(); session_destroy();?><meta http-equiv="refresh" content="=0;URL=index.php" />\[/code\]where base.php calls the database and starts the session:\[code\]<?phpsession_start(); $dbhost = "localhost"; // this will ususally be 'localhost', but can sometimes differ $dbname = "login"; // the name of the database that you are going to use for this project $dbuser = "root"; // the username that you created, or were given, to access your database $dbpass = ""; // the password that you created, or were given, to access your database mysql_connect($dbhost, $dbuser, $dbpass) or die("MySQL Error: " . mysql_error()); mysql_select_db($dbname) or die("MySQL Error: " . mysql_error()); ?> \[/code\]but after pressing logout, I am not getting back to index.php.
 
Back
Top