You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Adam Parrish <Ad...@abag.ca.gov> on 2002/08/30 22:48:41 UTC

'redefining' Session_OnStart

Hey all,

My name is Adam.  Long-time reader, first-time poster.

So I've been developing some software with Apache::ASP and everything is going
hunky-dorily except for the following: if I make any changes to global.asa 
then try to load any .asp file, I get the following error:

   errors compiling global.asa: maybe use strict error: Subroutine 
   Session_OnStart redefined at /home/www/store/etc/global.asa line 21. 

(Session_OnStart in global.asa contains just one statement, initializing a
member of the $Session hash.)

See now, once I restart Apache, this error goes away and the .asp files load 
fine.  But it'd be nice if I could find some way to be able to make changes to
global.asa without having to restart the entire server (the server is also
being used for other doodads and doohickamajiggers, you see).

I thought it might be something related to the whole StatInc thing, but
global.asa is included in my StatIncMatch line in httpd.conf.  Anyone have any
ideas?  Or am I going about this completely incorrectly?

Thanks for your help.

Later,
Adam



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: 'redefining' Session_OnStart

Posted by Josh Chamas <jo...@chamas.com>.
Adam Parrish wrote:
> Hey all,
> 
> My name is Adam.  Long-time reader, first-time poster.
> 
> So I've been developing some software with Apache::ASP and everything is going
> hunky-dorily except for the following: if I make any changes to global.asa 
> then try to load any .asp file, I get the following error:
> 
>    errors compiling global.asa: maybe use strict error: Subroutine 
>    Session_OnStart redefined at /home/www/store/etc/global.asa line 21. 
> 

In my latest Apache::ASP 2.39, I have this fixed, or so I think :)
I'll be sending this to you in a separate email for verification.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: 'redefining' Session_OnStart

Posted by Josh Chamas <jo...@chamas.com>.
Adam Parrish wrote:
> Hey all,
> 
> My name is Adam.  Long-time reader, first-time poster.
> 
> So I've been developing some software with Apache::ASP and everything is going
> hunky-dorily except for the following: if I make any changes to global.asa 
> then try to load any .asp file, I get the following error:
> 
>    errors compiling global.asa: maybe use strict error: Subroutine 
>    Session_OnStart redefined at /home/www/store/etc/global.asa line 21. 
> 

Quentin's work arounds are right, but the real problem still needs
to be fixed, and the global.asa needs to be reloadable even while under
UseStrict context.  What perl version are you using ( perl -v ).

--Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: 'redefining' Session_OnStart

Posted by Quentin Smith <qu...@comclub.dyndns.org>.
Hi-
I know other list members are going to flame me for suggesting this, but 
you probably have
PerlSetVar UseStrict 1
somewhere in your apache config. If you comment it out (or presumable 
change it to a 0), the error should go away. In addition, apache 
provides a method to restart your server without interrupting users. If 
you use apachectl, do apachectl graceful. If you use RedHat's services 
architecture, do /sbin/service httpd reload. This will cause apache to 
restart but wait for users to finish downloading files. In essence, 
users will not notice any interruption in service. Of course, I think 
the error you see is a bug in the first place, and Josh Chamas will 
probably chime in on whether it is or not.
HTH,
--Quentin
On Friday, August 30, 2002, at 04:48  PM, Adam Parrish wrote:

> Hey all,
>
> My name is Adam.  Long-time reader, first-time poster.
>
> So I've been developing some software with Apache::ASP and everything 
> is going
> hunky-dorily except for the following: if I make any changes to 
> global.asa
> then try to load any .asp file, I get the following error:
>
>    errors compiling global.asa: maybe use strict error: Subroutine
>    Session_OnStart redefined at /home/www/store/etc/global.asa line 21.
>
> (Session_OnStart in global.asa contains just one statement, 
> initializing a
> member of the $Session hash.)
>
> See now, once I restart Apache, this error goes away and the .asp files 
> load
> fine.  But it'd be nice if I could find some way to be able to make 
> changes to
> global.asa without having to restart the entire server (the server is 
> also
> being used for other doodads and doohickamajiggers, you see).
>
> I thought it might be something related to the whole StatInc thing, but
> global.asa is included in my StatIncMatch line in httpd.conf.  Anyone 
> have any
> ideas?  Or am I going about this completely incorrectly?
>
> Thanks for your help.
>
> Later,
> Adam
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org