How to view (not just clear) cookies from the iPhone, Android and other smartphones

If you have access to the phone and this is for Chrome, navigate to the website you’d like to see the cookies for, and then paste one of the following to view the cookies:

  1. // to alert the cookies as plain text 
  2. javascript:alert(document.cookie); 
  3.  
  4. // to show cookies as document 
  5. javascript:document.write(document.cookie) 
  6.  
  7. // to show it in the window pretty printed 
  8. javascript:document.write(`
    ${JSON.stringify(document.cookie.split(';').reduce((cookies, val) => { parts = val.split('='); cookies[parts[0]] = parts[1]; return cookies; }, {}), null, 2)}

    `) 

Nota che probabilmente dovrai ridigitare "javascript:" davanti dopo il copia/incolla.

Per iPhone e Safari, puoi attivare Impostazioni => Safari => Avanzate => Ispettore Web, poi connetti il tuo telefono a un macbook. Da lì sfogliare il sito sul telefono, aprire safari sul mac, selezionare il telefono dall'elenco, e poi ispezionare lo storage.