Hi,
I'm trying to use one redirect to see if the browser is accepting session and/or persistent cookies.
How do I (if I can) destroy the session so that when the new page is served it has a new session id?
Here is my little test code:
session_start() ;
$session_id = session_id();
if(!$_COOKIE["persistent"]){
setcookie("persistent", "$session_id", time() + 3600 * 24 * 31 * 12);
}
setcookie("session", "$session_id" );
header("Location: [url]http://mydomain.com/[/url]");
My understanding is if I can do that and the browser is accepting persistent cookies and there is no cookie set before the first GET call, then the two values in the cookie will be different