couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Gable <>
Subject Re: userCtx in Views
Date Sat, 12 Feb 2011 20:45:42 GMT
You shouldn't think about views as having any knowledge of anything at
all besides the document. Views emit a key and a value based off of
information available in the document. Views are only computed when a
document changes or when a view changes. They are not computed when
the request runs unless they haven't been computed yet or need to be

On Sat, Feb 12, 2011 at 1:52 PM, Wordit Ltd <> wrote:
> Can you get the currently authenticated user inside a view?
> Is not available? I get no results at all when I use it.
> I want to use the username to get values for the currently authenticated user.
> I know I can first get the session, then send the username as the key,
> but that requires two separate requests.
> Thanks,
> Marcus

Keith Gable
A+ Certified Professional
Network+ Certified Professional
Web Developer

View raw message