Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

Cookies not shared with Firefox Dev Tools? Or Firefox Dev Tools needs logging in separately?

  • 2 respostas
  • 1 tem este problema
  • 1 visualização
  • Última resposta por sccy

more options

I am seeing a strange problem which I am not sure the reasons behind. - Cookies? Firefox Dev Tools?

First of all, I have "Never remember history" settings and cookies are not carried forward to my next session.

I am developing a website and some of the pages require log-ins to access. The user sessions are handled with cookies.

For a log-in required page, I log in and everything shows up fine as how it is after I log in. When I press Ctrl-U , I can see the source of that page as expected.

However, when I press F12 to open the Firefox Dev Tools, I click on the Debugger tab and try to see the source code of that logged-in page. All I can see, is the source of the page when I have NOT logged in, i.e. the log-in prompt page.

I wonder if it is because of my "Never remember history" settings which makes the browser console unable to access the cookies required for the session. Or am I not using the Firefox Dev Tools correctly?

I was a FireBug user and I did not have this problem before. I only see this problem after switching to the Firefox Dev Tools.

I am seeing a strange problem which I am not sure the reasons behind. - Cookies? Firefox Dev Tools? First of all, I have "Never remember history" settings and cookies are not carried forward to my next session. I am developing a website and some of the pages require log-ins to access. The user sessions are handled with cookies. For a log-in required page, I log in and everything shows up fine as how it is after I log in. When I press Ctrl-U , I can see the source of that page as expected. However, when I press F12 to open the Firefox Dev Tools, I click on the Debugger tab and try to see the source code of that logged-in page. All I can see, is the source of the page when I have NOT logged in, i.e. the log-in prompt page. I wonder if it is because of my "Never remember history" settings which makes the browser console unable to access the cookies required for the session. Or am I not using the Firefox Dev Tools correctly? I was a FireBug user and I did not have this problem before. I only see this problem after switching to the Firefox Dev Tools.

Todas as respostas (2)

more options

Seems to working here and no difference between regular mode and private browsing mode. Searching for Logout brings me to the logout button.

Does this also happen if you go to the Inspector tab?

more options

No. The Inspector tab shows the correct HTML of the logged-in page. It's the Debugger tab that has the problem and shows the HTML of log-in prompt page.

Another thing is - I don't know if it is related to this problem - For both logged-in and not-logged-in versions of HTML, I am actually accessing the same URL/address - index.php. I don't know if Firefox Dev Tools has it mixed up.

Basically when I visit index.php , one of two things happens: - if I am not already logged in, the page will show the HTML of the log in prompt - if I am already logged in, the page will show the content of the actual page without prompting to log in.

The log-in is purely done by HTML form, not by AJAX. After server logs user in with the HTML form submission, one of the two, Javascript or server redirection, will be used to refresh the browser to the same URL.

Since both sets of HTML share the URL, I doubt if Debugger tab does not know that the HTML has been updated on second load.