I would like to store a small profile picture of my users in their browser so that they can see their profile picture (in the login form) each time they log in (when they tick r
Why you don't want to store picture on server and store the path in cookie?
This looks more situable, then write additional data on user computer...
Could you store the path to the image in a cookie and use the value to render it in the login screen?
Store it in localStorage using JavaScript.
https://web.archive.org/web/20160313121817/https://www.ibm.com/developerworks/mydeveloperworks/blogs/bobleah/entry/html5_code_example_store_images_using_localstorage57?lang=en
Surely it's more efficent to store a link to an online image in the cookie, and use that instead?
Each time a webpage is browsed, the cookies get transmitted - storing an image will add unecessary bandwidth.