Permalink
Browse files

Change cookie test so that it doesn't leave a useless cookie in the s…

…ession
  • Loading branch information...
flack committed Feb 1, 2019
1 parent 1977445 commit 471b68b79f3c72dd76a98b5bc565ca958d76e2bb
Showing with 1 addition and 3 deletions.
  1. +1 −3 themes/OpenPsa2/style/midcom_services_auth_login_page.php
@@ -70,9 +70,7 @@
</div>
</div>
<script type="text/javascript">
document.cookie = "cookietest=success;path=" + MIDCOM_PAGE_PREFIX;
if (document.cookie.indexOf("cookietest=") == -1)
{
if (!navigator.cookieEnabled) {
document.getElementById('cookie_warning').style.display = 'block';
}
</script>

0 comments on commit 471b68b

Please sign in to comment.