Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
What if you don't have an Apple computer? – Joe Dec 17 '12 at 23:03
I'm unsure if this works on Windows but you can give it a try. I would have done that but not owning a windows computer. – Hoshts Dec 17 '12 at 23:06
@Joe Safari installes on Windows OS as well as Mac OS. You might need another tool or have to run one of the supported OS in emulation if you want to use this method. – bmike Dec 23 '13 at 13:53
Want to inspect cookies on your iPad? "There's a MAC for that" – nclord Jul 1 '15 at 9:15

type the following in your iPhone browser address bar and hit GO

share|improve this answer

The javascript:alert(document.cookie) only shows the site url on safari on ios 6.1.2 on iphone 4S.

Maybe it's due to the fact that it's an https site ?

share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post once you have sufficient reputation. – grgarside Dec 23 '13 at 12:28

You can open the same site in Safari on a Mac and use the web inspector to check for the cookie values.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.