Improbed session clear on user logout

This commit is contained in:
Adolfo Gómez García 2020-10-29 07:49:43 +01:00
parent 76f4df5aa1
commit 13de581b80

View File

@ -333,7 +333,7 @@ def webLogout(request: HttpRequest, exit_url: typing.Optional[str] = None) -> Ht
else: # No user, redirect to /
return HttpResponseRedirect(reverse('page.login'))
request.session.clear()
request.session.flush()
if exit_url is None:
exit_url = reverse('page.logout')
# exit_url = GlobalConfig.LOGIN_URL.get()