Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 28714 invoked from network); 4 Mar 2005 06:27:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Mar 2005 06:27:56 -0000 Received: (qmail 39768 invoked by uid 500); 4 Mar 2005 06:27:44 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 39752 invoked by uid 500); 4 Mar 2005 06:27:44 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 39738 invoked by uid 99); 4 Mar 2005 06:27:43 -0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=HTML_20_30,HTML_MESSAGE,HTML_TEXT_AFTER_BODY,HTML_TEXT_AFTER_HTML,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from wip-ectls-mx3.wipro.com (HELO wip-ectls-mx3.wipro.com) (203.101.113.41) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 22:27:42 -0800 Received: from wip-ectls-mx3.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 0EEF722418B for ; Fri, 4 Mar 2005 11:57:38 +0530 (IST) Received: from blr-ec-bh3.wipro.com (blr-ec-bh3.wipro.com [10.200.50.93]) by wip-ectls-mx3.wipro.com (Postfix) with ESMTP id 04B1B2240A0 for ; Fri, 4 Mar 2005 11:57:38 +0530 (IST) Received: from BLR-EC-2K3MSG.wipro.com ([10.201.50.99]) by blr-ec-bh3.wipro.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 4 Mar 2005 11:57:33 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C52083.42800842" Date: Fri, 4 Mar 2005 11:57:37 +0530 Message-ID: <52D411E31DE3B8499E8BACB3349E2D62153493@BLR-EC-2K3MSG.wipro.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem accessing STATIC variables on Apache 1.3.33 Thread-Index: AcUgg0JoTrqJyV8VQQiuybLPQQM7AA== From: To: X-OriginalArrivalTime: 04 Mar 2005 06:27:33.0359 (UTC) FILETIME=[3FD3FFF0:01C52083] X-Virus-Checked: Checked Subject: [users@httpd] Problem accessing STATIC variables on Apache 1.3.33 X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C52083.42800842 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, Sorry in case this is a silly problem.... but i have tried a lot and since= didnt found any solution am putting mail.... I had earlier configured Apache on Windows. I had a small Plug-in running= on the windows system which used to authenticate requests... In the windows version i had some static variables which were used based on= the values. e.g. static int nVal =3D 0; function abc() { nval =3D 1; } Once the value was changed to 1, it was reflected across the whole of my= module irrespective of the request. But currently i am facing problems when i ported the same code to HPUX 11i. In HP although the code is the same, it always displays the initial value= in case the request from Apache is a new one. (i.e. value for nVal is 1). Is this because Apache on UNIX based machines is a Process based model= while on Windows its a thread based one....??? Is there any way how i can manage static variables for HP....???? Do reply... siba Confidentiality Notice=0D The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and may contain confidential or= privileged information. If you are not the intended recipient, please notify the sender at Wipro or= Mailadmin@wipro.com immediately and destroy all copies of this message and any attachments. ------_=_NextPart_001_01C52083.42800842 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Problem accessing STATIC variables on Apache 1.3.33

Hi All,

Sorry in case this is a silly problem.... but i have tried a lot and since= didnt found any solution am putting mail....

I had earlier configured Apache on Windows. I had a small Plug-in running= on the windows system which used to authenticate requests...
In the windows version i had some static variables which were used based on= the values.

e.g. static int nVal =3D 0;


function abc()
{
      nval =3D 1;
}

Once the value was changed to 1, it was reflected across the whole of my= module irrespective of the request.

But currently i am facing problems when i ported the same code to HPUX= 11i.
In HP although the code is the same, it always displays the initial value= in case the request from Apache is a new one. (i.e. value for nVal is= 1).

Is this because Apache on UNIX based machines is a Process based model= while on Windows its a thread based one....???

Is there any way how i can manage static variables for HP....????

Do reply...
siba



Confidentiality Notice

The information contained in this electronic message and any attachments to= this message are intended
for the exclusive use of the addressee(s) and may contain confidential or= privileged information. If
you are not the intended recipient, please notify the sender at Wipro or= Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
------_=_NextPart_001_01C52083.42800842--