Hi, On Thursday 19 April 2012 16:14:11 Houtzager, Guus wrote: > To see what's what I put the following lines in > https://portal.example.com/logout.php: > > setcookie(cosign, "null", time()-3600, '/', "", TRUE ); > setcookie(cosign-portal, "null", time()-3600, '/', "", TRUE ); The problem is here. You should put the cookie name in a string, as in: setcookie("cosign", "null", time()-3600, '/', "", TRUE ); setcookie("cosign-portal", "null", time()-3600, '/', "", TRUE );
The first setcookie works, because PHP evaluates undefined constant to its name, hence cosign evaluates to "cosign". On the other hand cosign-portal is treated as "cosign"-"portal" which then evaluates to 0 (as both strings evaluate to zero and 0-0=0) Regards, Martin Sucha ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Cosign-discuss mailing list Cosign-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cosign-discuss