I also found that the global logout invoked by adding a parameter to URL ?GLO=true is not working with my modification mentioned in description.