Skip to content

Commit

Permalink
Merge pull request #34 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 3.0.1 - add delete_remember_me_on_logout config
  • Loading branch information
fillup authored Dec 1, 2017
2 parents 2091be2 + 842f704 commit ef87826
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dockerbuild/ssp-overrides/SingleLogoutService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
* Unset c1 and c2 cookies if present
*/
$secureCookie = Env::get('SECURE_COOKIE', true);
setcookie('c1', '', 1, '/', null, $secureCookie, true);
setcookie('c2', '', 1, '/', null, $secureCookie, true);
$deleteRememberMeOnLogout = Env::get('DELETE_REMEMBER_ME_ON_LOGOUT', true);
if ($deleteRememberMeOnLogout === true) {
setcookie('c1', '', 1, '/', null, $secureCookie, true);
setcookie('c2', '', 1, '/', null, $secureCookie, true);
}

require __DIR__ . '/ssp-SingleLogoutService.php';

0 comments on commit ef87826

Please sign in to comment.