Restore global device session id upon logout