Authentication/Session cookie deleting after browser close

前端 未结 2 631
借酒劲吻你
借酒劲吻你 2020-12-31 14:24

What are the exact steps required for a cookie to persist after a browser is closed? At the moment I have:

  1. createPersistentCookie set to tru
2条回答
  •  臣服心动
    2020-12-31 15:09

    A persistent forms authentication cookie should not be discarded when the browser closes. It stays valid for the timeout value defined in the web.config.

    However, some browsers can be configured to discard all cookies at the end of a session - you may want to check the settings of your browser (FireFox: Tools - options - privacy).

提交回复
热议问题