first I have the following code at the beginning of the page
Code: Select all
<?php
session_start();
if (!isset($_COOKIEї'Channel-Travel']))
{
setcookie ("CIA", strip_tags(session_id()), time()+3600*24*365, "/", "www.CIA.com",0);
}
?>however I am trying to reset the cookie so i can reuse it
Code: Select all
session_unset();
session_destroy();
setcookie ("CIA", "", time()-3600*24*365, "/", "www.CIA.com",0);First question is when would I expect to see the cookie deleted - immediately because this is what I expect.
In the if (!isset($_COOKIE['Channel-Travel'])) above does it consider a 'deleted cookie' set or not?
This is annoying me greatly - Thanks in advnace for your help
regards
Sean
?>