CoSign: Collaborative Single Sign-On  

cosign-discuss at
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

  • To: cosign-discuss@xxxxxxxxx
  • Subject: Cookie Deletion in PHP5 on IIS6
  • From: Christopher Lafty <chl114@xxxxxxx>
  • Date: Wed, 27 Jul 2005 15:49:07 -0400
  • User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

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  I am trying to delete both, but still can't.

//get service name, contains "."

//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: XXXXXXXXXXXXXXXXXXXXXXXXXXX  ("_" contains the cookie?)

web developer cookie information:

Path /
Secure No
Expires At End Of Session

Am I missing something?

Thanks in advance,

:: 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

Copyright © 2002 - 2004 Regents of the University of Michigan :  Page last updated 15-December-2010