Rest_logout in order to have logout without html