Joel Reed wrote:
> 
> On Mar 29, [EMAIL PROTECTED] hacked the bitstream to say...
> Joshua> Joel Reed wrote:
> Joshua> >
> Joshua> > i'm not sure if anyone will ever find this useful but this makes
> Joshua> > $Application a per-process global var if you prefer that. this is
> Joshua> > probably terribly coded but it works for what i need (i'm definitely
> Joshua> > not a perl guru). please suggest improvement if you can ;)
> Joshua> >
> Joshua> > need
> Joshua> >         PerlSetVar AppDataPerProcess 1
> Joshua> >
> Joshua>
> Joshua> If you set AllowApplicationState to 0, then the system will
> Joshua> not define $Application, and you are free to use it then
> Joshua> for a per-process global.
> 
> then i won't have $Session either though i think. but maybe i can hack
> up Apache::ASP to just disable $Application, not $Session. thanks for
> the idea...
> 

No, AllowApplicationState 0 will just turn off $Application.
>From http://www.nodeworks.com/asp/config.html#State%20Management
or perldoc Apache::ASP ...

NoState
default 0, if true, neither the $Application nor $Session objects will be created. Use 
this for a performance
increase. Please note that this setting takes precedence over the AllowSessionState 
and AllowApplicationState
settings.

  PerlSetVar NoState 0

AllowSessionState
Set to 0 for no session tracking, 1 by default If Session tracking is turned off, 
performance improves, but the
$Session object is inaccessible.

  PerlSetVar AllowSessionState 1

AllowApplicationState
Default 1. If you want to leave $Application undefined, then set this to 0, for a 
performance increase of around
2-3%. Allowing use of $Application is less expensive than $Session, as there is more 
work for the StateManager
associated with $Session garbage collection so this parameter should be only used for 
extreme tuning.

  PerlSetVar AllowApplicationState 1

-- Joshua
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Reply via email to