Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1304

set Expires header on session cookies to make them persistent

    XMLWordPrintableJSON

Details

    • New Contributors Level (Easy)

    Description

      currently couch's cookie based authentication only sets session cookies as opposed to persistent cookies. the difference between these two is the Expires header. if it is not present most web browsers will delete your cookie when you quit your browser, whereas if it is set then your browser keeps the cookie around until the time specified by the Expires header.

      This sucks for UX because users quit and re-launch their browser they'll have to log in again.

      I am proposing that we set the Expires header in cookies to match the time in the couch_httpd_auth timeout

      p.s. this is similar to the issue I opened https://issues.apache.org/jira/browse/COUCHDB-1095 but at that time I didn't realize that what I really wanted was the Expires header

      Attachments

        Activity

          People

            rnewson Robert Newson
            maxogden max ogden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified