官方文档说明如下:
Some browsers (Chrome, for example) provide settings that allow users to continue browsing sessions after closing and re-opening the browser. In some cases, this can interfere with the setting and prevent sessions from expiring on browser close. Please be aware of this while testing Django applications which have the setting enabled.