simran wrote:
>
> Thanks Geoff.
>
> What you have suggested can solve the problem... i'm however, preferably
> looking at deleting a set var via my apache config file, and don't have
> a '$r' /request_object available there.
but you do have an Apache::Server object...
Apache::Server->dir_config->unset('foo');
see Recipe 17.1 in the Cookbook for a discussion if dir_config() from
the Apache::Server object (as well as it's limitations)
>
> Doug et al, can i please suggest the addition of a:
>
> * PerlDelVar or PerlUnsetVar
>
> to delete/unset a variable in the apache config file.
> I would make the changes and send in a patch, but i don't under the code
> (with my limited knowledge of C) well enough to do that.
you're probably better off setting the value you want for each vhost
rather than relying on unsetting a global. the decision for
PerlUnsetVar is probably best left to Doug...
HTH
--Geoff
>
> cheers,
>
> simran.
>
> On Tue, 2002-02-26 at 00:03, Geoffrey Young wrote:
> > simran wrote:
> > >
> > > Hi All,
> > >
> > > I could not find references on how to delete a varaible once set via
> > > PerlSetVar.
> > >
> > > I am setting a global 'PerlSetVar AuthNameExpires +24h' variable in my
> > > httpd.conf and want to be able to set it back to "expire at end of
> > > session" for some virtual hosts.
> > >
> > > If i could delete that variable, i could achieve that as per the spec,
> > > if the browser is not given a expiry time, the cookies lasts only for
> > > the session, however i so far have not been able to figure out how to
> > > delete a variable once set - anyone... ???
> > >
> >
> > you can use the Apache::Table interface for deleting (or setting or
> > manipulating) PerlSetVar
> >
> > $r->dir_config->unset('AuthNameExpires');
> >
> > see the latter part of recipe 3.14 in the cookbook for some additional
> > details on using the Apache::Table interface for dir_config, as well
> > as the Apache::Table manpage...
> >
> > HTH
> >
> > --Geoff
> >