From: Loic Baron Date: Wed, 21 Jan 2015 16:14:49 +0000 (+0100) Subject: Logout: localStorage.clear X-Git-Tag: myslice-1.3~113^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2b28eaf7d0677421b1ca2a3f705db6c6c085a595;hp=2f30f6622e888a096054cfeee92cd63c58c462fc;p=myslice.git Logout: localStorage.clear --- diff --git a/auth/static/js/logout.js b/auth/static/js/logout.js index 593eb588..3419b9d2 100644 --- a/auth/static/js/logout.js +++ b/auth/static/js/logout.js @@ -5,7 +5,7 @@ function logout () { var msg="Are you sure you want to logout as " + username + " ?"; /* redirect to /logout, see urls.py */ if (confirm(msg)){ - localStorage.removeItem('user'); + localStorage.clear(); window.location="/logout/"; } }