How can you see the value of a cookie on an iPhone?

I need to see the value of a cookie in Safari on an iPhone. How do I do this?

Note that I'm not asking how to delete a cookie, or how to see that a cookie exists. I'm trying to see the actual data stored in a cookie.

For example, on Firefox, I can go to Tools > Options > Privacy > Show Cookies and see the actual data stored in each cookie my browser has stored.


You can't see cookie data on the phone itself, but if you activate Settings > Safari > Advanced > Web Inspector you can connect the iPhone to an Apple computer with a cable and open Safari. Activate the Develop menu in Preferences > Advanced > Show Develop menu in menu bar

Now you can open a page on the iPhone and then select Develop > your_phone > the_page on the computer to see an inspector for the page on the phone. The second icon at the top is for storage and will show cookies for the page you show on the phone.

Sadly I can't find a way to show all cookies on the phone but if it is for development it is possible to monitor the cookie data.