r->notes among apache modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

I am using r->notes to maintain values of some variables among apache modules.

I am setting values in r->notes table in a module as follows:

 

/* Under Module A */

 

static int A_handler (request_rec *r)

{

apr_table_t *table=NULL;

table=apr_table_make(r->pool,1);

apr_table_set(r->notes,"MyNote","My Personal message to a module A ");

}

 

Now I want to read the value of  “MyNote” in Module B.

 

/* Under Module B */

 

Static int B_Handler(request_rec *r)

{

Const char *data;

Data="">

ap_rprintf((r, “<H1>%s </H1>”,data);

}

 

 

I compiled the full source codes and inserted Both The modules successfully.

I opend the two Browsers and called Handler of Module A first and  then on 2nd Brower, I called handler of  Module B.

 

I got Null printed on 2nd Browser.

 

 

Can any one guess my fault, if I have any.

 

Plz guide me to right way , How can I access that value.

 

 

 

Thanks In Advance

 

 

 

Ravi

 


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux