Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

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

  • 2 risposte
  • 1 ha questo problema
  • 2 visualizzazioni
  • Ultima risposta di 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.

Tutte le risposte (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.