I need to save in cookie information about watched movies/streams on my site. In short, my site is embedding youtube/vimeo(..) movies, each page has unique id ex:
/video/play/1/
loads movie with id '123sadzXC' from YouTube.
I want to count unique views depending on cookie (I know that user can delete cookie, use private mode and so on..).
So I want to create a cookie which will contain information about watched video id.
And here is my question: which approach is better?
- Store cookie for each movie/stream with different
path
variable - Storing all watched movies in single cookie with serialized array + some encryption for safety?