Skip to content
Snippets Groups Projects
Commit 42ca5809 authored by Olav Morken's avatar Olav Morken
Browse files

IdP Disco: Update delete-cookies page to delete all idpdisco cookies.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@983 44740490-163a-0410-bde0-09ae8108e29a
parent e237a16f
No related branches found
No related tags found
No related merge requests found
......@@ -10,23 +10,13 @@ require_once('_include.php');
$config = SimpleSAML_Configuration::getInstance();
$cookiePath = '/' . $config->getBaseUrl();
/* List over the cookies we should delete. */
$deleteCookies = array(
'idpdisco_saml20_rememberchoice',
'idpdisco_shib13_rememberchoice',
);
error_log(var_export($_COOKIE, TRUE));
/* Delete the cookies. */
foreach($deleteCookies as $cookieName) {
if(!array_key_exists($cookieName, $_COOKIE)) {
/* Cookie doesn't exist. */
/* We delete all cookies which starts with 'idpdisco_' */
foreach($_COOKIE as $cookieName => $value) {
if (substr($cookieName, 0, 9) !== 'idpdisco_') {
/* Not a idpdisco cookie. */
continue;
}
error_log('Deleting: ' . $cookieName);
/* Delete the cookie. We delete it once without the secure flag and once with the secure flag. This
* ensures that the cookie will be deleted in any case.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment