I don't believe you can. Unlike mod_python this uses the Apache 2.2
authentication backend provider stuff. Even if the new interface still
lets you get at the output headers that is not exposed by mod_wsgi.
Have you thought about the problem from another angle? You seem to be
using headers as a basic cache to save processing - move the cache to
the auth script instead? If threaded, a simple dict could do.
Martin
There is a way of doing it, but not documented and relies on some
special extensions.
Don't have time to explain right now, but will later.
> Have you thought about the problem from another angle? You seem to be
> using headers as a basic cache to save processing - move the cache to
> the auth script instead? If threaded, a simple dict could do.
I'd also perhaps suggest a lookup cache on server side may be a better
way of doing it if performance is an issue.
More later when have time and have had a think about it. Pity Apache
2.4 not out yet, as mod_session in that would likely help.
Graham
>There is a way of doing it, but not documented and relies on some
> On 13/11/2008, Pontus Enmark <pontus...@gmail.com> wrote:
>>
>> So, basically, how do I set a cookie from within the auth script?
>
> I don't believe you can. Unlike mod_python this uses the Apache 2.2
> authentication backend provider stuff. Even if the new interface still
> lets you get at the output headers that is not exposed by mod_wsgi.
special extensions.
Don't have time to explain right now, but will later.
I'd also perhaps suggest a lookup cache on server side may be a better
> Have you thought about the problem from another angle? You seem to be
> using headers as a basic cache to save processing - move the cache to
> the auth script instead? If threaded, a simple dict could do.
way of doing it if performance is an issue.
More later when have time and have had a think about it. Pity Apache
2.4 not out yet, as mod_session in that would likely help.
Graham