With Cookie authentication you send a POST to /_session and its result will contain a Set-Cookie (given the correct credentials), you dont need any special javascript around, just send the $_POST during login
Cheers Dale On 27 September 2011 09:31, CGS <[email protected]> wrote: > Hi all, > > I have few web applications which each requires login and I am trying to > unify their login procedures. One of the applications is CouchDB (obviously) > and, as far as I noticed, this application uses cookie system to save the > login session. Does anyone know what JavaScript files I should load into the > common login page and what to do to create that cookie? > > I know there is an option to transfer the login session via address bar, > but I do not fancy that option too much. That's why I try to create the > cookie and I am trying to "hack" futon, but I would appreciate any help if > any of you managed this before. Thank you. > > Cheers, > CGS > >
