Jump to content

"header(Location:" not working


marmite

Recommended Posts

Sorry, I don't follow you.

 

This code:

 

if ($_SESSION['prevpage']) {
	echo "session";
	header("Location: http://localhost/index.php");
	exit;
	}

 

does echo "session", so $_SESSION is set.

 

What do you mean, "echo off the session"? (sorry, I'm new to this!)

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.