You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by tsarvak <ti...@thomson.com> on 2006/11/02 15:46:15 UTC
[users@httpd] can Apache read a user cookie and write value to access_log?
Hi everyone -
I'm a complete newbie to Apache and web development in general, just started
learning about it it this week.
Here's my situation:
We have Apache 1.3 installed on an AIX server.
I want to be able to read a cookie from the user's client PC when they
access the website. This cookie would contain their user Id. I then want
to write the value of this cookie to the standard access_log file. The
purpose of this is to determine which users are accessing our Cognos Web
reports and when.
I understand that Apache can write its own user tracking cookie via the
mod_usertrack, but I need something that specifically allows me to read this
custom cookie containing the user's name.
Help of any kind would be appreciated!
Thanks.
--
View this message in context: http://www.nabble.com/can-Apache-read-a-user-cookie-and-write-value-to-access_log--tf2560197.html#a7134918
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] can Apache read a user cookie and write value to
access_log?
Posted by tsarvak <ti...@thomson.com>.
I'm just trying to work with what I've been given...
Nick Kew wrote:
>
> On Thu, 2 Nov 2006 06:46:15 -0800 (PST)
> tsarvak <ti...@thomson.com> wrote:
>
>>
>> Hi everyone -
>>
>> I'm a complete newbie to Apache and web development in general, just
>> started learning about it it this week.
>> Here's my situation:
>> We have Apache 1.3 installed on an AIX server.
>
> If you're new to it, why in heavens name start with a 1998 piece of
> software and lose out on everything that's happened this century?
>
>
> --
> Nick Kew
>
> Application Development with Apache - the Apache Modules Book
> http://www.apachetutor.org/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/can-Apache-read-a-user-cookie-and-write-value-to-access_log--tf2560197.html#a7136061
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] can Apache read a user cookie and write value to
access_log?
Posted by Nick Kew <ni...@webthing.com>.
On Thu, 2 Nov 2006 06:46:15 -0800 (PST)
tsarvak <ti...@thomson.com> wrote:
>
> Hi everyone -
>
> I'm a complete newbie to Apache and web development in general, just
> started learning about it it this week.
> Here's my situation:
> We have Apache 1.3 installed on an AIX server.
If you're new to it, why in heavens name start with a 1998 piece of
software and lose out on everything that's happened this century?
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] can Apache read a user cookie and write value to access_log?
Posted by Joshua Slive <jo...@slive.ca>.
On 11/2/06, tsarvak <ti...@thomson.com> wrote:
>
> I appreciate the fast reply.
> Okay, but what kind of code do I use and where would I place it in order to
> retrieve a cookie named,
> for example, DW_Cookie ?
You'll need to deal with that in the log processing program.
mod_log_config will simply dump the entire contents of the Cookie
request-header into the log.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] can Apache read a user cookie and write value to
access_log?
Posted by tsarvak <ti...@thomson.com>.
I appreciate the fast reply.
Okay, but what kind of code do I use and where would I place it in order to
retrieve a cookie named,
for example, DW_Cookie ?
Joshua Slive-2 wrote:
>
> On 11/2/06, tsarvak <ti...@thomson.com> wrote:
>>
>> Hi everyone -
>>
>> I'm a complete newbie to Apache and web development in general, just
>> started
>> learning about it it this week.
>> Here's my situation:
>> We have Apache 1.3 installed on an AIX server.
>> I want to be able to read a cookie from the user's client PC when they
>> access the website. This cookie would contain their user Id. I then
>> want
>> to write the value of this cookie to the standard access_log file. The
>> purpose of this is to determine which users are accessing our Cognos Web
>> reports and when.
>>
>> I understand that Apache can write its own user tracking cookie via the
>> mod_usertrack, but I need something that specifically allows me to read
>> this
>> custom cookie containing the user's name.
>
> Adding %{cookie}i to your logformat string should do the trick.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/can-Apache-read-a-user-cookie-and-write-value-to-access_log--tf2560197.html#a7135186
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] can Apache read a user cookie and write value to access_log?
Posted by Joshua Slive <jo...@slive.ca>.
On 11/2/06, tsarvak <ti...@thomson.com> wrote:
>
> Hi everyone -
>
> I'm a complete newbie to Apache and web development in general, just started
> learning about it it this week.
> Here's my situation:
> We have Apache 1.3 installed on an AIX server.
> I want to be able to read a cookie from the user's client PC when they
> access the website. This cookie would contain their user Id. I then want
> to write the value of this cookie to the standard access_log file. The
> purpose of this is to determine which users are accessing our Cognos Web
> reports and when.
>
> I understand that Apache can write its own user tracking cookie via the
> mod_usertrack, but I need something that specifically allows me to read this
> custom cookie containing the user's name.
Adding %{cookie}i to your logformat string should do the trick.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org