[an error occurred while processing the directive]
![]() |
cosign-discuss at umich.edu |
general discussion of cosign development and deployment | |
<?php $service = $_SERVER[ 'COSIGN_SERVICE' ]; setcookie( $service, "null", time()-1, '/', "", 1 );
<?php $service = $_SERVER[ 'HTTP_COSIGN_SERVICE' ]; setcookie( $service, "null", time()-1, '/', "", 1 );
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:
Namecosign-www.bio.psu.edu ValueXXXXXXXXXXXXXXXXXXXXXXXXXXX Hostxxx.xxx.xxx.xxx Path/ SecureNo ExpiresAt 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 ..................................... !DSPAM: 42e7e57d310441124611809!