hi ,

After a SESSION_DESTROY, when do I call a SESSION_START, would not it be for him to create another ID?

My problem is ...

I have a page where I register some variables of a form and other page that it is to finish the session.

In the page of LOGOUT I do

session_start();
session_unset();
session_destroy();
header("location:login.php");

The one that happens is that when I make LOGIN again, PHP takes advantage of SESSID and consequently the variables.

In other words, the variables are not destroyed with the session_destroy ()

Ex.:

page0: form.php

<form action="login.php">
field EMAIL
</form>


page1: login.php
<?PHP
session_start();
$email2=$email;
session_register('email2');
echo '<a href="logout.php?PHPSESSID='.session_id().'"> LOGOUT </a>';
?>

page2: logout.php

<?PHP
session_start();
session_unset();
session_destroy();
echo '<a href="form.php">LOGIN</a>';

?>

The one that happens is that when I return give login again he takes advantage the old session again, in other words, the sessionid and the variable previous EMAIL2, he doesn't create a new ID, or at least it cleans all the variables after a session_unset() and session_destroy().

I am using PHP4. 0. 1 AND IIS5.

Thanks !