mozilla

Revision 172803 of Creating a Cookie Log

  • Revision slug: Creating_a_Cookie_Log
  • Revision title: Creating a Cookie Log
  • Revision id: 172803
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[ja:Creating a Cookie Log]] <<langbot>>
Tags: 

Revision Content

{{template.Outdated("It was last updated in 2004.")}}

Creating a cookie log is often necessary to troubleshoot problems with Mozilla'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 Mozilla with cookie logging enabled.

Enabling Cookie Logging

Windows

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

  1. Change to your Mozilla directory (usually C:\Program Files\mozilla.org\Mozilla)
  2. Type "set NSPR_LOG_FILE=C:\temp\cookie.log", enter
  3. Type "set NSPR_LOG_MODULES=cookie:4" and press Enter
  4. Run mozilla by typing "mozilla" 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 Mozilla.
  2. Type "export NSPR_LOG_FILE=~/cookies.log" and press Enter.
  3. Type "export NSPR_LOG_MODULES=cookie:4" and press Enter.
  4. Run Mozilla by typing "./mozilla" and pressing Enter

Creating the Log

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

Thanks for helping us make Mozilla 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.
{{ wiki.languages( { "ja": "ja/Creating_a_Cookie_Log" } ) }}

Revision Source

<p>{{template.Outdated("It was last updated in 2004.")}}
</p><p>Creating a cookie log is often necessary to troubleshoot problems with Mozilla'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 Mozilla with cookie logging enabled. 
</p>
<h3 name="Enabling_Cookie_Logging"> Enabling Cookie Logging </h3>
<h4 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 Mozilla directory (usually C:\Program Files\mozilla.org\Mozilla)
</li><li> Type "set NSPR_LOG_FILE=C:\temp\cookie.log", enter
</li><li> Type "set NSPR_LOG_MODULES=cookie:4" and press Enter
</li><li> Run mozilla by typing "mozilla" and pressing Enter.
</li></ol>
<h4 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 Mozilla.
</li><li> Type "export NSPR_LOG_FILE=~/cookies.log" and press Enter.
</li><li> Type "export NSPR_LOG_MODULES=cookie:4" and press Enter.
</li><li> Run Mozilla by typing "./mozilla" and pressing Enter
</li></ol>
<h3 name="Creating_the_Log"> Creating the Log </h3>
<p>Now that you have Mozilla running with logging enabled, please try to replicate the bug using the steps to reproduce from the bug report. Once you have replicated the bug, shut down Mozilla. Close out of the command prompt/shell, and then launch Mozilla normally. Finally, attach the cookie.log to the bug where it was requested (by clicking on Create New Attachment). It should be in C:\temp on Windows or your home directory on Linux. 
</p><p>Thanks for helping us make Mozilla better!
</p>
<div class="originaldocinfo">
<h2 name="Original_Document_Information"> Original Document Information </h2>
<ul><li> Author(s): <a class="external" 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>
{{ wiki.languages( { "ja": "ja/Creating_a_Cookie_Log" } ) }}
Revert to this revision