From swansonlinda@example.org Tue Jan 10 10:58:02 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 9627 invoked from network); 10 Jan 2006 10:58:02 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 10 Jan 2006 10:58:02 -0000
Received: (qmail 1922 invoked by uid 500); 10 Jan 2006 10:58:02 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 1731 invoked by uid 500); 10 Jan 2006 10:58:01 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 1720 invoked by uid 99); 10 Jan 2006 10:58:01 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 02:58:01 -0800
X-ASF-Spam-Status: No, hits=0.9 required=10.0
	tests=HTML_10_20,HTML_MESSAGE,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO zproxy.gmail.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 02:58:00 -0800
Received: by zproxy.gmail.com with SMTP id 13so3983725nzp
        for <swansonlinda@example.org>; Tue, 10 Jan 2006 02:57:39 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:mime-version:content-type;
        b=DcNV3vSDcgyEA4h+T0QtuFAPqFlFIOcMauh0rmwykAY2N85Ee8X+ymEFi0lz/69kY32D9nVqhjDJH+Mmm8aJUC4BFyDixEaB0ZajzEoImQ5WZFI/HgpOfV+jq4uP5SGGXQA+l6GnWbi9I+e2BW1sUcx8Ll7CVmKAaJmMVMVts8Q=
Received: by 83.161.120.155 with SMTP id s9mr348983qbr;
        Tue, 10 Jan 2006 02:57:39 -0800 (PST)
Received: by 83.161.120.155 with HTTP; Tue, 10 Jan 2006 02:57:39 -0800 (PST)
Message-ID: <swansonlinda@example.org>
Date: Tue, 10 Jan 2006 18:57:39 +0800
From: Orlando Andico <swansonlinda@example.org>
To: swansonlinda@example.org
Subject: getting cookies from a library
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_11764_243672.1136890659286"
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

------=_Part_11764_243672.1136890659286
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

hello all,

i want to "library'fy" some routines into a .pm
(instead of putting it in global.asa)

now i need to grab some cookie
$Request->Cookies("some-large-cookie-name");

i actually want to hide this cookie invocation in the library .pm so that
the actual program source doesn't have it (an aesthetic thing). so instead
of every page having that cookie line, there's just a simple function call.

problem: $Request object doesn't exist in the .pm
i also tried
$cooky =3D $Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Request->Cookies("some-large-cookie-name");

which compiles correctly but doesn't work.

or is the only solution to hide the function inside global.asa?

------=_Part_11764_243672.1136890659286
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

hello all,<br><br>i want to &quot;library'fy&quot; some routines into a .pm=
<br>(instead of putting it in global.asa)<br><br>now i need to grab some co=
okie<br>$Request-&gt;Cookies(&quot;some-large-cookie-name&quot;);<br><br>
i actually want to hide this cookie invocation in the library .pm so that t=
he actual program source doesn't have it (an aesthetic thing). so instead o=
f every page having that cookie line, there's just a simple function call.
<br><br>problem: $Request object doesn't exist in the .pm<br>i also tried<b=
r>$cooky =3D $Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Request-&gt;Cookies(&quot;some-large-cookie-name=
&quot;);<br><br>which compiles correctly but doesn't work.<br><br>or is the=
 only solution to hide the function inside=20
global.asa?<br>

------=_Part_11764_243672.1136890659286--

From swansonlinda@example.org Tue Jan 10 11:29:39 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 26674 invoked from network); 10 Jan 2006 11:29:39 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 10 Jan 2006 11:29:39 -0000
Received: (qmail 37104 invoked by uid 500); 10 Jan 2006 11:29:39 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 36925 invoked by uid 500); 10 Jan 2006 11:29:38 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 36914 invoked by uid 99); 10 Jan 2006 11:29:38 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 03:29:38 -0800
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
	tests=SPF_HELO_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO mx.ATComputing.nl) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 03:29:37 -0800
Received: from localhost (localhost.atcomputing.nl [83.161.120.155])
	by mx.ATComputing.nl (Postfix) with ESMTP id 40326E825;
	Tue, 10 Jan 2006 12:29:13 +0100 (CET)
Message-ID: <swansonlinda@example.org>
Date: Tue, 10 Jan 2006 12:29:12 +0100
From: Harco de Hilster <swansonlinda@example.org>
User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Orlando Andico <swansonlinda@example.org>
Cc: swansonlinda@example.org
Subject: Re: getting cookies from a library
References: <swansonlinda@example.org>
In-Reply-To: <swansonlinda@example.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by AT Computing Virus Scanner
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Orlando Andico wrote:

> hello all,
>
> i want to "library'fy" some routines into a .pm
> (instead of putting it in global.asa)
>
> now i need to grab some cookie
> $Request->Cookies("some-large-cookie-name");
>
> i actually want to hide this cookie invocation in the library .pm so 
> that the actual program source doesn't have it (an aesthetic thing). 
> so instead of every page having that cookie line, there's just a 
> simple function call.
>
> problem: $Request object doesn't exist in the .pm
> i also tried
> $cooky = $Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Request->Cookies("some-large-cookie-name");
>
> which compiles correctly but doesn't work.
>
> or is the only solution to hide the function inside global.asa?

You will have to use $main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Request to access the Request object outside 
an ASP script.

Good luck,

Harco

-- 
-----------------+--------------------+-------------------------------
Harco de Hilster  AT Consultancy       Phone:  2209615571      
Unix Consultant   Toernooiveld 104     Fax:    2209615571      
                  6525 EC  Nijmegen    E-mail: swansonlinda@example.org
                  The Netherlands                                     
-----------------+--------------------+-------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org


From swansonlinda@example.org Wed Jan 18 06:22:28 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 89918 invoked from network); 18 Jan 2006 06:22:27 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 18 Jan 2006 06:22:27 -0000
Received: (qmail 31819 invoked by uid 500); 18 Jan 2006 06:22:05 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 30865 invoked by uid 500); 18 Jan 2006 06:21:52 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Delivered-To: moderator for swansonlinda@example.org
Received: (qmail 78190 invoked by uid 99); 17 Jan 2006 20:28:54 -0000
X-ASF-Spam-Status: No, hits=1.3 required=10.0
	tests=RCVD_IN_BL_SPAMCOP_NET
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lima; d=yahoogroups.com;
	b=LERLN//g6V5G6Nhq/elOFKImYhke5SDwPcCHfQ1awDLr8Vk7uUQ6GCr/vZNP2XNME7qr+F4f3JU354Ie+BdQ92oq3OgPAn3h3Fzt5DYY0Mfv9zDqdDi6yoV8Zc99CWKY;
Date: Tue, 17 Jan 2006 20:28:32 -0000
From: "Eamon Daly" <swansonlinda@example.org>
To: swansonlinda@example.org
Subject: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP and Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session
Message-ID: <swansonlinda@example.org>
User-Agent: eGroups-EW/0.82
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Yahoo Groups Message Poster
X-Yahoo-Post-IP: 83.161.120.155
X-Yahoo-Newman-Property: groups-compose
Sender: swansonlinda@example.org
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

I know this has been mentioned before on the list, but I'm having a 
heck of a time overriding $Session with Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session. Josh advises:

"...I would use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session, which you can easily configure
to use by setting 'PerlSetVar AllowSessionState Off' and then setting 
$Session to the Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session object created in Script_OnStart."

http://groups.yahoo.com/group/apache-asp/message/1559

In Script_OnStart, I have:

    use vars qw(%session);
    my $id =3D $Request->Cookies('_session_id') || undef;
    tie %session, 'Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4MySQL', $id, \%session_connect;
    $Session =3D \%session;
    $Server->RegisterCleanup(sub { untie(%session); });
    $Response->Cookies('_session_id', $session{'_session_id'});

There's clearly a scoping issue there, though, because although both %
session and $Session are populated and read/writable within 
Script_OnStart, they aren't from actual pages. I can fix that with 
Script_OnParse:

    my $code =3D $Server->{ScriptRef};
    $$code =3D '<% $Session =3D \%session %>' . "\n$$code";

which seems /awfully/ clumsy. Is that really TRWTDI?

Secondly, I have an XMLSub that looks for certain information in 
$Session. Previously, I could refer to $main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session, but that 
doesn't fly with the new overridden object. I don't know a way around 
this one.

Any help would be appreciated. Thanks!




---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org


From swansonlinda@example.org Thu Jan 19 17:04:47 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 5241 invoked from network); 19 Jan 2006 17:04:47 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 19 Jan 2006 17:04:47 -0000
Received: (qmail 10172 invoked by uid 500); 19 Jan 2006 17:04:46 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 10157 invoked by uid 500); 19 Jan 2006 17:04:45 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 10146 invoked by uid 99); 19 Jan 2006 17:04:45 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 09:04:45 -0800
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
	tests=SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO conn.mc.mpls.visi.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 09:04:43 -0800
Received: from [83.161.120.155] (exlibris.dsl.visi.com [83.161.120.155])
	by conn.mc.mpls.visi.com (Postfix) with ESMTP id 95958822B
	for <swansonlinda@example.org>; Thu, 19 Jan 2006 11:04:22 -0600 (CST)
Message-ID: <swansonlinda@example.org>
Date: Thu, 19 Jan 2006 11:06:53 -0600
From: Andrew Koebrick <swansonlinda@example.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: swansonlinda@example.org
Subject: Excluding Apah888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP from a directory?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Howdy,

I need to exclude a few directories from being interprented by 
Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4SP.  Currently, I amsetting the handler in my http.conf file 
with a <Files? directive:
PerlModule  Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP

<Files ~ (\.htm|\.inc)>
   SetHandler  perl-script
   PerlHandler Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP
   PerlSetVar  Global /home/httpd/html/inc
   PerlSetVar  StateDir /tmp/asp
   PerlSetVar Debug 1
   PerlSetVar UniquePackages 1
   PerlSetVar RequestParams 1
   PerlSetVar RequestBinaryRead Off
 </Files>

Is there any way to override this in a local .htaccess file?  I have a 
client with an application that is using the <% tags for other purposes 
and Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP is attempting to interperate non-perl code.

Thanks,

Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org


From swansonlinda@example.org Thu Jan 19 17:23:01 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 15245 invoked from network); 19 Jan 2006 17:23:01 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 19 Jan 2006 17:23:01 -0000
Received: (qmail 47267 invoked by uid 500); 19 Jan 2006 17:23:00 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 47242 invoked by uid 500); 19 Jan 2006 17:23:00 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 47213 invoked by uid 99); 19 Jan 2006 17:22:59 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 09:22:59 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=HTML_MESSAGE
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO web.unlimited-xs.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 09:22:58 -0800
Received: from localhost (localhost.localdomain [83.161.120.155])
	by web.unlimited-xs.com (Postfix) with ESMTP id A9DE314B6B5
	for <swansonlinda@example.org>; Thu, 19 Jan 2006 18:22:30 +0100 (CET)
Received: from web.unlimited-xs.com ([83.161.120.155])
	by localhost (web [83.161.120.155]) (amavisd-new, port 10024) with ESMTP
	id 13564-02 for <swansonlinda@example.org>;
	Thu, 19 Jan 2006 18:22:27 +0100 (CET)
Received: from limitedxs (limited-xs.sadjieds-network.com [83.161.120.155])
	by web.unlimited-xs.com (Postfix) with ESMTP id 07F6A14B6B4
	for <swansonlinda@example.org>; Thu, 19 Jan 2006 18:22:27 +0100 (CET)
From: "Sadjied Idoe" <swansonlinda@example.org>
To: <swansonlinda@example.org>
Subject: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP on Debian with Apache2?
Date: Thu, 19 Jan 2006 18:22:27 +0100
Organization: Unlimited-Xs Webhosting & Web-Services
Message-ID: <009101c61d1c$eb96dba0$0200a8c0@limitedxs>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0092_01C61D25.4D5B43A0"
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AcYdHOtNeT2nOQ2PSrGQHS+X7lJOJw==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unlimited-xs.com
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

------=_NextPart_000_0092_01C61D25.4D5B43A0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

 

I have a Debian Sarge webserver. Using Apache 2, Perl 5 en mod_perl 2 on it.

I tried to install Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP on the basic of
http://www.apache-asp.org/install.html.

 

And how you can see on http://www.apache-asp.org/config.html, when I insert
the code

PerlModule  Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP
 <Files ~ (\.asp)>    
   SetHandler  perl-script
   PerlHandler Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP
   PerlSetVar  Global .
   PerlSetVar  StateDir /tmp/asp
 </Files>

In my httpd.conf, and I reload apache2. I see this error in the error log :

 

[Wed Jan 18 16:57:17 2006] [error] Can't locate Apache2/RequestRec.pm in
@INC (@INC contains: /usr/lib/perl5/Apache2 /etc/per

l /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8

 /usr/local/lib/site_perl . /etc/apache2) at
/usr/local/share/perl/5.8.4/Apache/ASP/ApacheCommon.pm line 13.\nBEGIN
failed--c

ompilation aborted at /usr/local/share/perl/5.8.4/Apache/ASP/ApacheCommon.pm
line 13.\nCompilation failed in require at (eval

 27) line 1.\nBEGIN failed--compilation aborted at (eval 27) line
1.\nCompilation failed in require at (eval 3) line 3.\n

[Wed Jan 18 16:57:17 2006] [error] Can't load Perl module Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP for
server web.unlimited-xs.com:0, exiting...

 

What to do now?

 

I hope someone can help me out?

 

Thanks!

 

Sadjied 


------=_NextPart_000_0092_01C61D25.4D5B43A0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Trebuchet MS";
	panose-1:2 11 6 3 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
pre
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.E-mailStijl17
	{mso-style-type:personal-compose;
	font-family:"Trebuchet MS";
	color:windowtext;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DNL link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>I have a Debian Sarge webserver. Using Apache =
2, Perl
5 en mod_perl 2 on it.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>I tried to install Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP on the basic =
of <a
href=3D"http://www.apache-asp.org/install.html">http://www.apache-asp.org=
/install.html</a>.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>And how you can see on <a
href=3D"http://www.apache-asp.org/config.html">http://www.apache-asp.org/=
config.html</a>,
when I insert the code<o:p></o:p></span></font></p>

<pre><font size=3D2 face=3D"Courier New"><span lang=3DEN-GB =
style=3D'font-size:10.0pt'>PerlModule&nbsp; =
Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span lang=3DEN-GB =
style=3D'font-size:10.0pt'> &lt;Files ~ (\.asp)&gt;&nbsp;&nbsp;&nbsp; =
<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span lang=3DEN-GB =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp;SetHandler&nbsp; =
perl-script<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span lang=3DEN-GB =
style=3D'font-size:10.0pt'>&nbsp;&nbsp; PerlHandler =
Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span lang=3DEN-GB =
style=3D'font-size:10.0pt'>&nbsp;&nbsp; PerlSetVar&nbsp; Global =
.<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span lang=3DEN-GB =
style=3D'font-size:10.0pt'>&nbsp;&nbsp; PerlSetVar&nbsp; StateDir =
/tmp/asp<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span lang=3DEN-GB =
style=3D'font-size:10.0pt'> =
&lt;/Files&gt;<o:p></o:p></span></font></pre>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>In my httpd.conf, and I reload apache2. I see =
this
error in the error log :<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>[Wed Jan 18 16:57:17 2006] [error] Can't =
locate
Apache2/RequestRec.pm in @INC (@INC contains: /usr/lib/perl5/Apache2 =
/etc/per<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>l /usr/local/lib/perl/5.8.4
/usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 =
/usr/lib/perl/5.8
/usr/share/perl/5.8<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>&nbsp;/usr/local/lib/site_perl . =
/etc/apache2) at
/usr/local/share/perl/5.8.4/Apache/ASP/ApacheCommon.pm line 13.\nBEGIN
failed--c<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>ompilation aborted at
/usr/local/share/perl/5.8.4/Apache/ASP/ApacheCommon.pm line =
13.\nCompilation
failed in require at (eval<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>&nbsp;27) line 1.\nBEGIN failed--compilation =
aborted at
(eval 27) line 1.\nCompilation failed in require at (eval 3) line =
3.\n<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>[Wed Jan 18 16:57:17 2006] [error] Can't load =
Perl
module Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP for server web.unlimited-xs.com:0, =
exiting...<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>What to do now?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>I hope someone can help me =
out?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>Thanks!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'>Sadjied <o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0092_01C61D25.4D5B43A0--



From swansonlinda@example.org Thu Jan 19 22:17:23 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 10864 invoked from network); 19 Jan 2006 22:17:18 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 19 Jan 2006 22:17:18 -0000
Received: (qmail 45504 invoked by uid 500); 19 Jan 2006 22:15:36 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 42007 invoked by uid 500); 19 Jan 2006 22:15:15 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 41183 invoked by uid 99); 19 Jan 2006 22:15:02 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 14:15:02 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO etr-usa.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 14:12:50 -0800
Received: (qmail 3568 invoked by uid 13447); 19 Jan 2006 22:12:30 -0000
Received: from unknown (HELO [83.161.120.155]) ([83.161.120.155])
          (envelope-sender <swansonlinda@example.org>)
          by 83.161.120.155 (qmail-ldap-1.03) with SMTP
          for <swansonlinda@example.org>; 19 Jan 2006 22:12:30 -0000
Message-ID: <swansonlinda@example.org>
Date: Thu, 19 Jan 2006 15:12:29 -0700
From: Warren Young <swansonlinda@example.org>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: Apache-ASP List <swansonlinda@example.org>
Subject: Re: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP on Debian with Apache2?
References: <009101c61d1c$eb96dba0$0200a8c0@limitedxs>
In-Reply-To: <009101c61d1c$eb96dba0$0200a8c0@limitedxs>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Sadjied Idoe wrote:
> 
> [Wed Jan 18 16:57:17 2006] [error] Can't locate Apache2/RequestRec.pm in 
> @INC (@INC contains: /usr/lib/perl5/Apache2 /etc/per

This indicates that you either do not actually have mod_perl2, or you 
are using one of the earlier 1.99* versions before they changed 
everything over to the Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Whatever interfaces.  They made this 
change in 1.999_22, which was released just a few months before v2.0.

Try editing /usr/local/share/perl/5.8.4/Apache/ASP/ApacheCommon.pm and 
remove the '2' from all 'Apache2' instances.  Start your web server 
again, and, if I am right about the problem, it will complain that it 
cannot find one more Perl module.  (I forget its name, sorry.)  Comment 
out the line requesting that in ApacheCommon.pm, and the web server 
should start now.

---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org


From swansonlinda@example.org Thu Jan 19 23:41:45 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 73370 invoked from network); 19 Jan 2006 23:41:44 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 19 Jan 2006 23:41:44 -0000
Received: (qmail 4505 invoked by uid 500); 19 Jan 2006 23:41:44 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 4488 invoked by uid 500); 19 Jan 2006 23:41:43 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 4477 invoked by uid 99); 19 Jan 2006 23:41:43 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 15:41:43 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO web.unlimited-xs.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 15:41:42 -0800
Received: from localhost (localhost.localdomain [83.161.120.155])
	by web.unlimited-xs.com (Postfix) with ESMTP id 0694B14B6B5
	for <swansonlinda@example.org>; Fri, 20 Jan 2006 00:41:18 +0100 (CET)
Received: from web.unlimited-xs.com ([83.161.120.155])
	by localhost (web [83.161.120.155]) (amavisd-new, port 10024) with ESMTP
	id 16048-09 for <swansonlinda@example.org>;
	Fri, 20 Jan 2006 00:41:17 +0100 (CET)
Received: from limitedxs (limited-xs.sadjieds-network.com [83.161.120.155])
	by web.unlimited-xs.com (Postfix) with ESMTP id BCE7614B6B4
	for <swansonlinda@example.org>; Fri, 20 Jan 2006 00:41:17 +0100 (CET)
From: "Sadjied Idoe" <swansonlinda@example.org>
To: <swansonlinda@example.org>
Subject: RE: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP on Debian with Apache2?
Date: Fri, 20 Jan 2006 00:41:18 +0100
Organization: Unlimited-Xs Webhosting & Web-Services
Message-ID: <002a01c61d51$d8ed3aa0$0200a8c0@limitedxs>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AcYdRfXGbjpGgR8TQFGaCjoPuADovwAC83+A
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
In-Reply-To: <swansonlinda@example.org>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unlimited-xs.com
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Thank you, It Works!!!!!

Sadjied Idoe
Eigenaar
Unlimited-Xs Webhosting & Web-Services
Tel: 06-40846747 (Alleen tussen 8:00 & 19:00 bereikbaar. Geen gehoor,
probeer dan later terug te bellen!)
E-mail: swansonlinda@example.org 
-----Oorspronkelijk bericht-----
Van: Warren Young [mailto:swansonlinda@example.org] 
Verzonden: donderdag 19 januari 2006 23:12
Aan: Apache-ASP List
Onderwerp: Re: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP on Debian with Apache2?

Sadjied Idoe wrote:
> 
> [Wed Jan 18 16:57:17 2006] [error] Can't locate Apache2/RequestRec.pm in 
> @INC (@INC contains: /usr/lib/perl5/Apache2 /etc/per

This indicates that you either do not actually have mod_perl2, or you 
are using one of the earlier 1.99* versions before they changed 
everything over to the Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Whatever interfaces.  They made this 
change in 1.999_22, which was released just a few months before v2.0.

Try editing /usr/local/share/perl/5.8.4/Apache/ASP/ApacheCommon.pm and 
remove the '2' from all 'Apache2' instances.  Start your web server 
again, and, if I am right about the problem, it will complain that it 
cannot find one more Perl module.  (I forget its name, sorry.)  Comment 
out the line requesting that in ApacheCommon.pm, and the web server 
should start now.

---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org



---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org


From swansonlinda@example.org Sat Jan 21 19:31:43 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 60339 invoked from network); 21 Jan 2006 19:31:42 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 21 Jan 2006 19:31:42 -0000
Received: (qmail 87653 invoked by uid 500); 21 Jan 2006 19:31:42 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 87435 invoked by uid 500); 21 Jan 2006 19:31:39 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 87374 invoked by uid 99); 21 Jan 2006 19:31:38 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 11:31:38 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=
X-Spam-Check-By: apache.org
Received-SPF: neutral (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO n5a.bullet.scd.yahoo.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with SMTP; Sat, 21 Jan 2006 11:30:57 -0800
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lima; d=yahoogroups.com;
	b=PobFPmhbOUMyoamgEyKgOFhfcEprRHXWEQNUcmMvHiwQOuFqpKLjb6iJKa0nGsu8E4lUK2OFATmNcIMARpkdSmAA/CwMPenGCLiX3R5fndgtbSTnBzNSHrxQ3ak3pxSm;
Received: from [83.161.120.155] by n5.bullet.scd.yahoo.com with NNFMP; 21 Jan 2006 19:30:36 -0000
Received: from [83.161.120.155] by t7.bullet.scd.yahoo.com with NNFMP; 21 Jan 2006 19:30:36 -0000
Date: Sat, 21 Jan 2006 19:30:35 -0000
From: "Eamon Daly" <swansonlinda@example.org>
To: swansonlinda@example.org
Subject: Re: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP and Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session
Message-ID: <swansonlinda@example.org>
In-Reply-To: <swansonlinda@example.org>
User-Agent: eGroups-EW/0.82
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Yahoo Groups Message Poster
X-Yahoo-Post-IP: 83.161.120.155
X-Yahoo-Newman-Property: groups-compose
Sender: swansonlinda@example.org
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Well, I still can't muster the magic to get $Session properly[1] 
viewable from ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4XMLSubs or any other module, but here's how to get 
Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session working in a very basic way:

--- httpd.conf ---
PerlSetVar NoState 1

--- global.asa ---
BEGIN {
  @Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Objects =3D qw(Server Application Request Response);
}

use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4MySQL;
use ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session;

...

Script_OnStart {
    &start_session;
}

--- ASP/Session.pm ---
package ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Startup;

use Exporter;

use vars qw(@ISA @EXPORT);

@ISA    =3D qw(Exporter);
@EXPORT =3D qw(start_session $Session %session);

my $SESSION_EXPIRY =3D 60 * 20; # In seconds

our $Session;
our %session;

sub start_session {
    my %session_connect =3D (); # Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session connection settings

    # Attempt to tie %session to the id from the cookie, or create a
    # new session.

    eval {
        tie(%session,
            'Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4MySQL',
            $main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Request->Cookies('_session_id'),
            \%session_connect);
    };

    if ($@) {
        die $@ unless $@ =3D~ /Object does not exist/;  # Re-throw

        # The session's been cleaned up, so create a new session.

        tie(%session,
            'Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4MySQL',
            undef,
            \%session_connect);
    }

    # If the session is more than $SESSION_EXPIRY seconds old, delete
    # it and start anew.

    if ($session{'_update_time'} &&
        time >=3D $session{'_update_time'} + $SESSION_EXPIRY) {
        tied(%session)->delete;
        tie(%session,
            'Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4MySQL',
            undef,
            \%session_connect);
    }

    $session{'_update_time'} =3D time;

    $Session =3D \%session;

    $main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Server->RegisterCleanup(sub { untie(%session); });

    $main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Response->Cookies('_session_id', $session{'_session_id'});
}

1;

Note that you'll still need something to purge old sessions from your 
Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session store. I created my session table like so:

CREATE TABLE `user_session` (
  `id` varchar(40) NOT NULL default '',
  `a_session` text,
  `a_update` timestamp NULL default NULL on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`)
) ENGINE=3DMyISAM

The timestamp lets me purge old sessions every hour.

[1] $Session /is/ accessible through 
$Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ompiles888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4__ASP__var_www_document_rootx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session, but 
not main, leading to the very /very/ ugly hack:

my $session_obj =3D eval '$' . caller() . '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session';
my $foo =3D $session_obj->{'FOO'};

No idea why that works.



--- In swansonlinda@example.org, "Eamon Daly" <eamon@e...> wrote:
>
> I know this has been mentioned before on the list, but I'm having a
> heck of a time overriding $Session with Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session. Josh 
advises:
> 
> "...I would use Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session, which you can easily configure
> to use by setting 'PerlSetVar AllowSessionState Off' and then 
setting
> $Session to the Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session object created in Script_OnStart."
> 
> http://groups.yahoo.com/group/apache-asp/message/1559
> 
> In Script_OnStart, I have:
> 
>     use vars qw(%session);
>     my $id =3D $Request->Cookies('_session_id') || undef;
>     tie %session, 'Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4MySQL', $id, \%session_connect;
>     $Session =3D \%session;
>     $Server->RegisterCleanup(sub { untie(%session); });
>     $Response->Cookies('_session_id', $session{'_session_id'});
> 
> There's clearly a scoping issue there, though, because although 
both %
> session and $Session are populated and read/writable within
> Script_OnStart, they aren't from actual pages. I can fix that with
> Script_OnParse:
> 
>     my $code =3D $Server->{ScriptRef};
>     $$code =3D '<% $Session =3D \%session %>' . "\n$$code";
> 
> which seems /awfully/ clumsy. Is that really TRWTDI?
> 
> Secondly, I have an XMLSub that looks for certain information in
> $Session. Previously, I could refer to $main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session, but that
> doesn't fly with the new overridden object. I don't know a way 
around
> this one.
> 
> Any help would be appreciated. Thanks!





---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org


From swansonlinda@example.org Sat Jan 21 23:13:17 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 45962 invoked from network); 21 Jan 2006 23:13:17 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 21 Jan 2006 23:13:17 -0000
Received: (qmail 70031 invoked by uid 500); 21 Jan 2006 23:13:17 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 69850 invoked by uid 500); 21 Jan 2006 23:13:16 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 69839 invoked by uid 99); 21 Jan 2006 23:13:16 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 15:13:16 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO boutell.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 15:13:15 -0800
Received: from boutell.com (localhost [83.161.120.155])
	by localhost (Postfix) with ESMTP id D12665F809B;
	Sat, 21 Jan 2006 17:07:43 -0600 (CST)
Received: from EDALYLAPTOP (c-24-12-70-190.hsd1.il.comcast.net [83.161.120.155])
	by boutell.com (Postfix) with ESMTP id 8F1835F8095;
	Sat, 21 Jan 2006 17:07:43 -0600 (CST)
Message-ID: <016801c61ee0$33aed040$6501a8c0@EDALYLAPTOP>
From: "Eamon Daly" <swansonlinda@example.org>
To: "John Drago" <swansonlinda@example.org>,
	<swansonlinda@example.org>
References: <swansonlinda@example.org>
Subject: Re: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP and Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session
Date: Sat, 21 Jan 2006 17:12:50 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="iso-8859-1";
	reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

I could have /sworn/ I'd tried that! In any case, that works
great. Thanks!

____________________________________________________________
Eamon Daly



----- Original Message ----- 
From: "John Drago" <swansonlinda@example.org>
To: "Eamon Daly" <swansonlinda@example.org>; <swansonlinda@example.org>
Sent: Saturday, January 21, 2006 4:05 PM
Subject: RE: Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP and Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session


Eamon - in your ASP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Startup package, make sure you do this:

$main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session = $Session;

That way you will be able to access $main888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session from your XMLSubs.



---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org


From swansonlinda@example.org Sun Jan 22 16:12:03 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 53555 invoked from network); 22 Jan 2006 16:12:03 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 22 Jan 2006 16:12:03 -0000
Received: (qmail 12965 invoked by uid 500); 22 Jan 2006 16:12:03 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 12948 invoked by uid 500); 22 Jan 2006 16:12:02 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 12937 invoked by uid 99); 22 Jan 2006 16:12:01 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 08:12:01 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=HTML_MESSAGE
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO web.unlimited-xs.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 08:12:01 -0800
Received: from localhost (localhost.localdomain [83.161.120.155])
	by web.unlimited-xs.com (Postfix) with ESMTP id B605E14B6C5
	for <swansonlinda@example.org>; Sun, 22 Jan 2006 17:11:29 +0100 (CET)
Received: from web.unlimited-xs.com ([83.161.120.155])
	by localhost (web [83.161.120.155]) (amavisd-new, port 10024) with ESMTP
	id 24472-08 for <swansonlinda@example.org>;
	Sun, 22 Jan 2006 17:11:26 +0100 (CET)
Received: from limitedxs (limited-xs.sadjieds-network.com [83.161.120.155])
	by web.unlimited-xs.com (Postfix) with ESMTP id 9846E14B6C2
	for <swansonlinda@example.org>; Sun, 22 Jan 2006 17:11:26 +0100 (CET)
From: "Sadjied Idoe" <swansonlinda@example.org>
To: <swansonlinda@example.org>
Subject: Database Server?
Date: Sun, 22 Jan 2006 17:11:31 +0100
Organization: Unlimited-Xs Webhosting & Web-Services
Message-ID: <003701c61f6e$820bc1b0$0200a8c0@limitedxs>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0038_01C61F76.E3D029B0"
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Thread-Index: AcYfboHGaLdKhbcXSy6fjv4AEzjtRg==
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unlimited-xs.com
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

------=_NextPart_000_0038_01C61F76.E3D029B0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

 

Can Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP connect with MySQL? With what sort of database servers can
it connect?

Where can I find it? And how can I install it on Debian?

 

Thank you.

 

With Kind Regards,

 

Sadjied Idoe

Eigenaar

Unlimited-Xs Webhosting & Web-Services

Tel: 06-40846747 (Alleen tussen 8:00 & 19:00 bereikbaar. Geen gehoor,
probeer dan later terug te bellen!)

E-mail:  <mailto:swansonlinda@example.org>
swansonlinda@example.org 

 


------=_NextPart_000_0038_01C61F76.E3D029B0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Trebuchet MS";
	panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
	{font-family:Tre;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.E-mailStijl17
	{mso-style-type:personal-compose;
	font-family:"Trebuchet MS";
	color:windowtext;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DNL link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
style=3D'font-size:
10.0pt;font-family:"Trebuchet MS"'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
style=3D'font-size:
10.0pt;font-family:"Trebuchet MS"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Trebuchet MS"'>Can Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP =
connect
with MySQL? With what sort of database servers can it =
connect?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Trebuchet MS"'>Where can I find =
it? And
how can I install it on Debian?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Trebuchet =
MS"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Trebuchet MS"'>Thank =
you.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Trebuchet =
MS"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Trebuchet MS"'>With Kind =
Regards,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Trebuchet MS"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt;font-family:"Trebuchet =
MS"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTre><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Tre'>Sadjied Idoe</span></font><span =
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt'>Eigenaar</span></font><span =
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt'>Unlimited-Xs Webhosting &amp; =
Web-Services</span></font><span
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
style=3D'font-size:
10.0pt'>Tel: 06-40846747 (Alleen tussen 8:00 &amp; 19:00 bereikbaar. =
Geen
gehoor, probeer dan later terug te bellen!)</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:10.0pt'>E-mail: </span></font><font size=3D2><span
style=3D'font-size:10.0pt'><a =
href=3D"mailto:swansonlinda@example.org"><span
lang=3DEN-GB>swansonlinda@example.org</span></a></span></font><font =
size=3D2><span
style=3D'font-size:10.0pt'> </span></font><span =
lang=3DEN-GB><o:p></o:p></span></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0038_01C61F76.E3D029B0--



From swansonlinda@example.org Sun Jan 22 16:43:48 2006
Return-Path: <swansonlinda@example.org>
Delivered-To: swansonlinda@example.org
Received: (qmail 60452 invoked from network); 22 Jan 2006 16:43:48 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 22 Jan 2006 16:43:48 -0000
Received: (qmail 23992 invoked by uid 500); 22 Jan 2006 16:43:48 -0000
Delivered-To: swansonlinda@example.org
Received: (qmail 23979 invoked by uid 500); 22 Jan 2006 16:43:48 -0000
Mailing-List: contact swansonlinda@example.org; run by ezmlm
Precedence: bulk
list-help: <mailto:swansonlinda@example.org>
list-unsubscribe: <mailto:swansonlinda@example.org>
List-Post: <mailto:swansonlinda@example.org>
List-Id: <asp.perl.apache.org>
Delivered-To: mailing list swansonlinda@example.org
Received: (qmail 23968 invoked by uid 99); 22 Jan 2006 16:43:48 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 08:43:48 -0800
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [83.161.120.155] (HELO mail.tvskat.net) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 08:43:47 -0800
Received: from vr (unknown [83.161.120.155])
	by mail.tvskat.net (Postfix) with SMTP
	id BC38B873D; Sun, 22 Jan 2006 19:00:29 +0200 (EET)
Date: Sun, 22 Jan 2006 20:43:18 +0200
From: raptor <swansonlinda@example.org>
To: "Sadjied Idoe" <swansonlinda@example.org>
Cc: swansonlinda@example.org
Subject: Re: Database Server?
Message-Id: <swansonlinda@example.org>
In-Reply-To: <003701c61f6e$820bc1b0$0200a8c0@limitedxs>
References: <003701c61f6e$820bc1b0$0200a8c0@limitedxs>
X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.9; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

it is not Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP responsibility to provide u with database conectivity,
for this use either DBI (or Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DBI) directly or Class888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4I any other db-module u can find on CPAN.

hth
 
|Hi,
|
| 
|
|Can Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ASP connect with MySQL? With what sort of database servers can
|it connect?
|
|Where can I find it? And how can I install it on Debian?
|
| 
|
|Thank you.
|
| 
|
|With Kind Regards,
|
| 
|
|Sadjied Idoe
|
|Eigenaar
|
|Unlimited-Xs Webhosting & Web-Services
|
|Tel: 06-40846747 (Alleen tussen 8:00 & 19:00 bereikbaar. Geen gehoor,
|probeer dan later terug te bellen!)
|
|E-mail:  <mailto:swansonlinda@example.org>
|swansonlinda@example.org 
|
| 
|
|

---------------------------------------------------------------------
To unsubscribe, e-mail: swansonlinda@example.org
For additional commands, e-mail: swansonlinda@example.org



{'source': 'Apache Software Foundation Public Mail Archives'}