fix user logout dection and disqus ssl