mozilla

Revision 172804 of Creating a Cookie Log

  • Revision slug: Creating_a_Cookie_Log
  • Revision title: Creating a Cookie Log
  • Revision id: 172804
  • Created:
  • Creator: Dwitte
  • Is current revision? Yes
  • Comment update logging instructions to include Mac OS X (bug 403228).
Tags: 

Revision Content

Creating a cookie log is often necessary to troubleshoot problems with Firefox's cookie handling. If you are reading this, you have probably been directed here from a bug report. Please follow the instructions below to run Firefox with cookie logging enabled.

Windows

Open a command prompt (this is under Programs or Programs/Accessories in normal installations of Windows).

  1. Change to your Firefox directory (usually C:\Program Files\Mozilla Firefox)
  2. Type "set NSPR_LOG_FILE=C:\temp\cookie-log.txt", enter
  3. Type "set NSPR_LOG_MODULES=cookie:4" and press Enter
  4. Run Firefox by typing "firefox.exe" and pressing Enter.

Linux

Start a command shell (these instructions are for bash, if you use something else, you probably know how to modify these instructions already).

  1. Change to the installation directory for Firefox.
  2. Type "export NSPR_LOG_FILE=~/cookie-log.txt" and press Enter.
  3. Type "export NSPR_LOG_MODULES=cookie:4" and press Enter.
  4. Run Firefox by typing "./firefox" and pressing Enter

Mac OS X

Open Terminal.app, which is located in the /Applications/Utilities folder (these instructions are for bash, the default shell in Mac OS X 10.3 and higher; if you use something else, you probably know how to modify these instructions already).

  1. Change to the installation directory for Firefox, e.g. type "cd /Applications/Firefox.app/Contents/MacOS" and press Return.
  2. Type "export NSPR_LOG_FILE=~/Desktop/cookie-log.txt" and press Return.
  3. Type "export NSPR_LOG_MODULES=cookie:4" and press Return.
  4. Run Firefox by typing "./firefox-bin" and pressing Return (note that Firefox will launch behind windows for other applications).

Creating the Log

Now that you have Firefox running with logging enabled, please try to replicate the bug using the steps to reproduce from the bug report. Once you have reproduced the bug, shut down Firefox. Close out of the command prompt/shell/Terminal, and then launch Firefox normally. Finally, attach the cookie-log.txt file to the bug where it was requested (by clicking on Create New Attachment). It should be in C:\temp on Windows, your home directory on Linux, or the Desktop on Mac OS X.

Thanks for helping us make Firefox better!

Original Document Information

  • Author(s): Mike Connor
  • Last Updated Date: December 4, 2004
  • Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details.
{{ languages( { "ja": "ja/Creating_a_Cookie_Log" } ) }}

Revision Source

<p>Creating a cookie log is often necessary to troubleshoot problems with Firefox's cookie handling. If you are reading this, you have probably been directed here from a bug report. Please follow the instructions below to run Firefox with cookie logging enabled. </p>
<h3 id="Enabling_Cookie_Logging" name="Enabling_Cookie_Logging"> Enabling Cookie Logging </h3>
<h4 id="Windows" name="Windows"> Windows </h4>
<p>Open a command prompt (this is under Programs or Programs/Accessories in normal installations of Windows).
</p>
<ol><li> Change to your Firefox directory (usually C:\Program Files\Mozilla Firefox)
</li><li> Type "set NSPR_LOG_FILE=C:\temp\cookie-log.txt", enter
</li><li> Type "set NSPR_LOG_MODULES=cookie:4" and press Enter
</li><li> Run Firefox by typing "firefox.exe" and pressing Enter.
</li></ol>
<h4 id="Linux" name="Linux"> Linux </h4>
<p>Start a command shell (these instructions are for bash, if you use something else, you probably know how to modify these instructions already).
</p>
<ol><li> Change to the installation directory for Firefox.
</li><li> Type "export NSPR_LOG_FILE=~/cookie-log.txt" and press Enter.
</li><li> Type "export NSPR_LOG_MODULES=cookie:4" and press Enter.
</li><li> Run Firefox by typing "./firefox" and pressing Enter
</li></ol>
<h4 id="Mac_OS_X" name="Mac_OS_X"> Mac OS X </h4>
<p>Open Terminal.app, which is located in the /Applications/Utilities folder (these instructions are for bash, the default shell in Mac OS X 10.3 and higher; if you use something else, you probably know how to modify these instructions already).
</p>
<ol><li> Change to the installation directory for Firefox, e.g. type "cd /Applications/Firefox.app/Contents/MacOS" and press Return.
</li><li> Type "export NSPR_LOG_FILE=~/Desktop/cookie-log.txt" and press Return.
</li><li> Type "export NSPR_LOG_MODULES=cookie:4" and press Return.
</li><li> Run Firefox by typing "./firefox-bin" and pressing Return (note that Firefox will launch behind windows for other applications).
</li></ol>
<h3 id="Creating_the_Log" name="Creating_the_Log"> Creating the Log </h3>
<p>Now that you have Firefox running with logging enabled, please try to replicate the bug using the steps to reproduce from the bug report. Once you have reproduced the bug, shut down Firefox. Close out of the command prompt/shell/Terminal, and then launch Firefox normally. Finally, attach the cookie-log.txt file to the bug where it was requested (by clicking on Create New Attachment). It should be in C:\temp on Windows, your home directory on Linux, or the Desktop on Mac OS X.
</p><p>Thanks for helping us make Firefox better!
</p>
<div class="originaldocinfo">
<h2 id="Original_Document_Information" name="Original_Document_Information"> Original Document Information </h2>
<ul><li> Author(s): <a class="link-mailto" href="mailto:mconnor@myrealbox.com">Mike Connor</a>
</li><li> Last Updated Date: December 4, 2004
</li><li> Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | <a class="external" href="http://www.mozilla.org/foundation/licensing/website-content.html">Details</a>.
</li></ul>
</div>
<div class="noinclude">
</div>
{{ languages( { "ja": "ja/Creating_a_Cookie_Log" } ) }}
Revert to this revision