User saving/adding to favourites/etc

Saying there is an option for the user to add to favourites/save/etc. The user clicks that button and it saves the file. How to make it so that when the user goes back to that file’s page, it is automatically showing up as saved?

E.g. they are browsing photos online and they save one photo. When they go back online and browse and navigate to the photo from anywhere, it automatically shows up as saved and there is no longer a save option.