I'm watching a tv show on Hulu.com (which is btw, the absolute best streaming-video site around) and whether I close my browser, disconnect from the internet, and even if I restart my computer in the middle of watching a show, the next time I go to their site, I can resume the tv from exactly the time where I left off in the show.
My question is from a detailed web programming perspective, how can they achieve this? I assume it's not using sessions because I don't think that would work if I restarted my computer. If it's using cookies, then how can they constantly update the cookie with your location in a show?
In order to receive the attached bounty, please include code examples in preferably Java/JSP (PHP is ok too) of how to create the cookie and a snippet of server-side code that would allow for the updated viewer's position.
thanks!