| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <HTML |
| ><HEAD |
| ><TITLE |
| >Everybody is constantly being forced to relogin</TITLE |
| ><META |
| NAME="GENERATOR" |
| CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK |
| REL="HOME" |
| TITLE="The Bugzilla Guide - 2.20.1 |
| Release" |
| HREF="index.html"><LINK |
| REL="UP" |
| TITLE="Troubleshooting" |
| HREF="troubleshooting.html"><LINK |
| REL="PREVIOUS" |
| TITLE="Your vendor has not defined Fcntl macro O_NOINHERIT" |
| HREF="trouble-filetemp.html"><LINK |
| REL="NEXT" |
| TITLE="Some users are constantly being forced to relogin" |
| HREF="x3190.html"></HEAD |
| ><BODY |
| CLASS="section" |
| BGCOLOR="#FFFFFF" |
| TEXT="#000000" |
| LINK="#0000FF" |
| VLINK="#840084" |
| ALINK="#0000FF" |
| ><DIV |
| CLASS="NAVHEADER" |
| ><TABLE |
| SUMMARY="Header navigation table" |
| WIDTH="100%" |
| BORDER="0" |
| CELLPADDING="0" |
| CELLSPACING="0" |
| ><TR |
| ><TH |
| COLSPAN="3" |
| ALIGN="center" |
| >The Bugzilla Guide - 2.20.1 |
| Release</TH |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="10%" |
| ALIGN="left" |
| VALIGN="bottom" |
| ><A |
| HREF="trouble-filetemp.html" |
| ACCESSKEY="P" |
| >Prev</A |
| ></TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="center" |
| VALIGN="bottom" |
| >Appendix B. Troubleshooting</TD |
| ><TD |
| WIDTH="10%" |
| ALIGN="right" |
| VALIGN="bottom" |
| ><A |
| HREF="x3190.html" |
| ACCESSKEY="N" |
| >Next</A |
| ></TD |
| ></TR |
| ></TABLE |
| ><HR |
| ALIGN="LEFT" |
| WIDTH="100%"></DIV |
| ><DIV |
| CLASS="section" |
| ><H1 |
| CLASS="section" |
| ><A |
| NAME="trbl-relogin-everyone" |
| >B.8. Everybody is constantly being forced to relogin</A |
| ></H1 |
| ><P |
| >The most-likely cause is that the <SPAN |
| CLASS="QUOTE" |
| >"cookiepath"</SPAN |
| > parameter |
| is not set correctly in the Bugzilla configuration. You can change this (if |
| you're a Bugzilla administrator) from the editparams.cgi page via the web. |
| </P |
| ><P |
| >The value of the cookiepath parameter should be the actual directory |
| containing your Bugzilla installation, <EM |
| >as seen by the end-user's |
| web browser</EM |
| >. Leading and trailing slashes are mandatory. You can |
| also set the cookiepath to any directory which is a parent of the Bugzilla |
| directory (such as '/', the root directory). But you can't put something |
| that isn't at least a partial match or it won't work. What you're actually |
| doing is restricting the end-user's browser to sending the cookies back only |
| to that directory. |
| </P |
| ><P |
| >How do you know if you want your specific Bugzilla directory or the |
| whole site? |
| </P |
| ><P |
| >If you have only one Bugzilla running on the server, and you don't |
| mind having other applications on the same server with it being able to see |
| the cookies (you might be doing this on purpose if you have other things on |
| your site that share authentication with Bugzilla), then you'll want to have |
| the cookiepath set to "/", or to a sufficiently-high enough directory that |
| all of the involved apps can see the cookies. |
| </P |
| ><DIV |
| CLASS="example" |
| ><A |
| NAME="trbl-relogin-everyone-share" |
| ></A |
| ><P |
| ><B |
| >Example B-1. Examples of urlbase/cookiepath pairs for sharing login cookies</B |
| ></P |
| ><A |
| NAME="AEN3176" |
| ></A |
| ><BLOCKQUOTE |
| CLASS="BLOCKQUOTE" |
| ><P |
| CLASS="literallayout" |
| ><br> |
| urlbase is <A |
| HREF="http://bugzilla.mozilla.org/" |
| TARGET="_top" |
| >http://bugzilla.mozilla.org/</A |
| ><br> |
| cookiepath is /<br> |
| <br> |
| urlbase is <A |
| HREF="http://tools.mysite.tld/bugzilla/" |
| TARGET="_top" |
| >http://tools.mysite.tld/bugzilla/</A |
| ><br> |
| but you have http://tools.mysite.tld/someotherapp/ which shares<br> |
| authentication with your Bugzilla<br> |
| cookiepath is /<br> |
| </P |
| ></BLOCKQUOTE |
| ></DIV |
| ><P |
| >On the other hand, if you have more than one Bugzilla running on the |
| server (some people do - we do on landfill) then you need to have the |
| cookiepath restricted enough so that the different Bugzillas don't |
| confuse their cookies with one another. |
| </P |
| ><DIV |
| CLASS="example" |
| ><A |
| NAME="trbl-relogin-everyone-restrict" |
| ></A |
| ><P |
| ><B |
| >Example B-2. Examples of urlbase/cookiepath pairs to restrict the login cookie</B |
| ></P |
| ><A |
| NAME="AEN3183" |
| ></A |
| ><BLOCKQUOTE |
| CLASS="BLOCKQUOTE" |
| ><P |
| CLASS="literallayout" |
| ><br> |
| urlbase is <A |
| HREF="http://landfill.bugzilla.org/bugzilla-tip/" |
| TARGET="_top" |
| >http://landfill.bugzilla.org/bugzilla-tip/</A |
| ><br> |
| cookiepath is /bugzilla-tip/<br> |
| <br> |
| urlbase is <A |
| HREF="http://landfill.bugzilla.org/bugzilla-2.16-branch/" |
| TARGET="_top" |
| >http://landfill.bugzilla.org/bugzilla-2.16-branch/</A |
| ><br> |
| cookiepath is /bugzilla-2.16-branch/<br> |
| </P |
| ></BLOCKQUOTE |
| ></DIV |
| ><P |
| >If you had cookiepath set to <SPAN |
| CLASS="QUOTE" |
| >"/"</SPAN |
| > at any point in the |
| past and need to set it to something more restrictive |
| (i.e. <SPAN |
| CLASS="QUOTE" |
| >"/bugzilla/"</SPAN |
| >), you can safely do this without |
| requiring users to delete their Bugzilla-related cookies in their |
| browser (this is true starting with Bugzilla 2.18 and Bugzilla 2.16.5). |
| </P |
| ></DIV |
| ><DIV |
| CLASS="NAVFOOTER" |
| ><HR |
| ALIGN="LEFT" |
| WIDTH="100%"><TABLE |
| SUMMARY="Footer navigation table" |
| WIDTH="100%" |
| BORDER="0" |
| CELLPADDING="0" |
| CELLSPACING="0" |
| ><TR |
| ><TD |
| WIDTH="33%" |
| ALIGN="left" |
| VALIGN="top" |
| ><A |
| HREF="trouble-filetemp.html" |
| ACCESSKEY="P" |
| >Prev</A |
| ></TD |
| ><TD |
| WIDTH="34%" |
| ALIGN="center" |
| VALIGN="top" |
| ><A |
| HREF="index.html" |
| ACCESSKEY="H" |
| >Home</A |
| ></TD |
| ><TD |
| WIDTH="33%" |
| ALIGN="right" |
| VALIGN="top" |
| ><A |
| HREF="x3190.html" |
| ACCESSKEY="N" |
| >Next</A |
| ></TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="33%" |
| ALIGN="left" |
| VALIGN="top" |
| >Your vendor has not defined Fcntl macro O_NOINHERIT</TD |
| ><TD |
| WIDTH="34%" |
| ALIGN="center" |
| VALIGN="top" |
| ><A |
| HREF="troubleshooting.html" |
| ACCESSKEY="U" |
| >Up</A |
| ></TD |
| ><TD |
| WIDTH="33%" |
| ALIGN="right" |
| VALIGN="top" |
| >Some users are constantly being forced to relogin</TD |
| ></TR |
| ></TABLE |
| ></DIV |
| ></BODY |
| ></HTML |
| > |