[an error occurred while processing the directive]
cosign-discuss at umich.edu
general discussion of cosign development and deployment
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cookie Deletion in PHP5 on IIS6



Anybody had luck destroying the cosign service cookie with PHP5? I've been trying all day long and I can't seem to remove it with a logout page.

Using phpinfo(), I see the cookie as _COOKIE["cosign-xxx_xxx_xxx_xxx"], but with the web developer toolbar in firefox, the cookie shows up as cosign-xxx.xxx.xxx.xxx.  I am trying to delete both, but still can't.

<?php
//get service name, contains "."
$service = $_SERVER['HTTP_COSIGN_SERVICE'];

//delete the cookie with "."
setcookie ($service, FALSE, time()-1000);

//put in "_" instead of "."
$service1 = str_replace(".", "_", $service);
setcookie ($service1, FALSE, time()-1000);

//output to see if successful
echo "</br>cosign-cookie:" . $_COOKIE[$service];
echo "</br>cosign-cookie:" . $_COOKIE[$service1];
?>

browser output:

cosign-cookie:
cosign-cookie: XXXXXXXXXXXXXXXXXXXXXXXXXXX  ("_" contains the cookie?)

web developer cookie information:

Name cosign-www.bio.psu.edu
Value XXXXXXXXXXXXXXXXXXXXXXXXXXX
Host xxx.xxx.xxx.xxx
Path /
Secure No
Expires At End Of Session


Am I missing something?

Thanks in advance,
Chris
-- 







.....................................
:: Christopher Lafty
:: Computer Support/Web Site Administrator
:: Department of Biology
:: Pennsylvania State University
:: 109 Mueller Lab
:: University Park, PA 16802
:: Phone: 814-865-6590
:: chrislafty@xxxxxxx
.....................................

[an error occurred while processing the directive]