Fixing logout bug in Firefox