session unset

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

session unset

Post by pinehead18 »

Code: Select all

<?php
	session_start();
	session_unset();
	session_destroy();
	header("Location: http://.com/index1.php");
?>
That does not send me to the location using header.

Any ideas?
Thank you
Anthony
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

is that the actual url you are trying to go to? some browsers won't redirect if the page isn't found. I don't see why you named the topic session unset, when your call to header has nothing to do with it.
Post Reply