HTTP is a stateless protocol, but many application servers emulate a session by keeping an in-memory data structure that is keyed off of a browser cookie. CouchDB doesn't do this.
I think the easiest way for you to have an anonymous session like that would be to put CouchDB behind some kind of application server, e.g. PHP, Sinatra, Express. Cheers, Zach On Wed, Dec 8, 2010 at 3:56 PM, Ido Ran <[email protected]> wrote: > Hi, > I have an application which show album of photos (this is new). > I would like to keep track of how many people view each album. > If I allow anyone to change the document of the album the data will not > worth anything. > > How can I ensure that client side code does not do bad stuff? > > I though that CouchDB HTTP module must keep track on HTTP session even if > the client does not authenticate. Can I get hold on the session in some way > to at least validate that the same session does not change document in short > period of time? > > Thank you, > Ido >
