Cookies Preferences in Mozilla 编辑

These preferences apply to most Mozilla products (including Firefox and Seamonkey), however they are application-specific, so not all of them may apply to you. The default values given are for Firefox 3.

network.cookie.cookieBehavior

Default Value: 0

0 = accept all cookies by default
1 = only accept from the originating site (block third party cookies)
2 = block all cookies by default
3 = use p3p settings (note: this is only applicable to older Mozilla Suite and Seamonkey versions.)
4 = Storage access policy: Block cookies from trackers

network.cookie.lifetimePolicy

Default Value: 0

0 = Accept cookies normally
1 = Prompt for each cookie (prompting was removed in Firefox 44)
2 = Accept for current session only
3 = Accept for N days

network.cookie.lifetime.days

Default Value: 90

Only used if network.cookie.lifetimePolicy is set to 3

Sets the number of days that the lifetime of cookies should be limited to.

network.cookie.alwaysAcceptSessionCookies

Default Value: false

Only used if network.cookie.lifetimePolicy is set to 1

true = accepts session cookies without prompting
false = prompts for session cookies

network.cookie.thirdparty.sessionOnly

Default Value: false

true = restrict third party cookies to the session only
false = no restrictions on third party cookies

network.cookie.maxNumber

Default Value: 1000

Configures the maximum amount of cookies to be stored

Valid range is from 0-65535, RFC 2109 and 2965 require this to be at least 300

network.cookie.maxPerHost

Default Value: 50

Configures the maximum amount of cookies to be stored per host

Valid range is from 0-65535, RFC 2109 and 2965 require this to be at least 20

network.cookie.disableCookieForMailNews

Default Value: true

true = do not accept any cookies from within mailnews or from mail-style URIs
false = allow cookies in these situations

This preference is applicable to all versions of Seamonkey.

New in Thunderbird 3 This preference is applicable to Thunderbird 3 and later. Earlier versions of Thunderbird only allowed cookies on RSS feeds.

Original Document Information

network.cookie.prefsMigrated

Default Value: false

Migration pref for users with older profiles (before Mozilla 1.7). If you have the old-style prefs, they will be migrated when starting the application. (The old prefs are network.cookie.lifetime.enabled, network.cookie.lifetime.behavior, and network.cookie.warnAboutCookies.)

true = prefs have been migrated
false = migrate prefs on next startup

  • Author(s): Mike Connor
  • Last Updated Date: May 22, 2004
  • Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:96 次

字数:4880

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文