Re: inserting parameters into URLs dynamically

From: Date: Sat, 15 Mar 2003 03:12:11 +0000
Subject: Re: inserting parameters into URLs dynamically
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139777@lists.php.net to get a copy of this message
Hi, Saturday, March 15, 2003, 7:31:52 AM, you wrote: MR> We are looking for a way to set several key/value pairs (which will differ MR> across users) such that they will persist during the user's session and MR> be logged in the weblogs for every request that user makes. Some MR> potential ways of doing this that occurred to us: MR> - implement functionality to programmatically append these parameters to MR> the querystring of all urls displayed across our site (far too cumbersome, MR> we don't consider this a viable option) MR> - find a way for PHP to automatically tack the parameters onto the ends MR> of url querystrings, the same way it can do with PHPSESSIONID (we haven't MR> found, in our initial research, a way to do this) MR> Our primary goal is to get these parameters logged in the weblogs, without MR> having to programmatically/physically modify every link on our site. For MR> example, if we wanted to track parameters called x and y, the link on the MR> page would just point to: MR> /index.php MR> but the weblog would show something like the following hit: MR> /index.php?x=foo&y=bar MR> The parameter values would need to get set once at the beginning of a user's MR> session, and then would not change over the course of that session (but MR> they'd need to get tracked with every request they made). We're planning to MR> implement persistent sessions across our servers as well. MR> ==================================== MR> Maureen Roihl MR> Senior Web Developer MR> Smarter Living MR> mo@smarterliving.com You could use something like this <?php apache_note('PHP_TITLE','Home Page')?> Then the log formatter line needs \"%{PHP_TITLE}n\" adding -- regards, Tom

« previous php.general (#139777) next »