Given that this setting is only used for cookies sent to browser, changing it in the code will not change validity of cookie already stored in the browser.