setting REMOTE_USER CGI env. var
Michal Wallace
sabren at manifestation.com
Wed Aug 30 11:36:38 EDT 2000
On 30 Aug 2000, Constantinos A. Kotsokalis wrote:
> I am writing a CGI script in Python and I am trying to set the
> REMOTE _USER environment variable, after authenticating using
> a form (no htaccess or require valid-user). I have been trying with
>
> os.environ["REMOTE_USER"]=username
>
> but it's not working (it is set temporarily but lost right after).
> Does anyone know how to do this?
You can't really set CGI environment variables and expect them to
persist. You want to set a cookie or something.
go to http://weblib.sourceforge.net/ and see if the weblib.Auth class
meets your needs.
Cheers,
- Michal
------------------------------------------------------------------------
www.manifestation.com www.sabren.com www.linkwatcher.com www.zike.net
------------------------------------------------------------------------
More information about the Python-list
mailing list