When the browser restarts, the sessionId request of the FacesContext request (JSESSIONID cookie) is automatically launched. Therefore, when you restart the browser check with the old value, make sure that the same sessionId works. This is one solution.
source share